Compare commits

...

2 commits

Author SHA1 Message Date
d3708b3238 Fix pet-mode hook configuration
The -10 parameter was for add-hook, not for pet-mode itself
2025-05-05 16:49:33 +02:00
a12b42933e Uniform configuration between macOS and Linux 2025-05-05 15:24:53 +02:00

10
init.el
View file

@ -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 ()
@ -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