From a12b42933ec5fb44983eed1277e86209f6dcc633 Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Mon, 5 May 2025 15:24:53 +0200 Subject: [PATCH 1/2] Uniform configuration between macOS and Linux --- init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 8a980ee..5a1e4f0 100644 --- a/init.el +++ b/init.el @@ -83,7 +83,7 @@ ;; Font configuration (let ((my-font "Iosevka Term") - (my-height 120)) + (my-height (if (eq window-system 'ns) 130 120))) (set-face-attribute 'default nil :family my-font :height my-height) (set-face-attribute 'fixed-pitch nil :family my-font :height my-height)) (set-face-attribute 'variable-pitch nil :family "Libertinus Serif" :height 160) @@ -368,7 +368,7 @@ ;;; Knowledge management: org-mode, org-roam, bibliography ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(setq notes-dir "~/Documents/notes") +(setq notes-dir (if (eq window-system 'ns) "~/Documents/personal/notes" "~/Documents/notes")) ;; Pour accéder rapidement à l'organisation (defun gtd () From d3708b32384649ebec294e16a4dae58f9fdb9ce1 Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Mon, 5 May 2025 16:49:33 +0200 Subject: [PATCH 2/2] Fix pet-mode hook configuration The -10 parameter was for add-hook, not for pet-mode itself --- init.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 5a1e4f0..cc6318e 100644 --- a/init.el +++ b/init.el @@ -854,8 +854,10 @@ (use-package pet :ensure t - :hook - (python-base-mode . (lambda () (pet-mode -10)))) + :config + ;; The -10 tells `add-hook' to makes sure the function is called as early as + ;; possible whenever it is added to the hook variable + (add-hook 'python-base-mode-hook 'pet-mode -10)) (use-package paredit :ensure t