Run tracker script automatically with firestarter

This commit is contained in:
mez 2025-08-16 18:22:23 +01:00
parent 702c0bd5b0
commit fd515b5266

View file

@ -282,6 +282,18 @@ Much nicer-looking modeline.
(setq doom-modeline-buffer-encoding nil))) (setq doom-modeline-buffer-encoding nil)))
#+END_SRC #+END_SRC
** =firestarter=
Run commands when saving buffers depending on [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html][directory-local variables]]. Using this to automatically run the tracker script when I save files in the journal directory.
#+BEGIN_SRC emacs-lisp
(unless (string-equal system-type "android")
(unless (string-equal user-login-name "3055822")
(use-package firestarter)
(firestarter-mode)
(put 'firestarter 'safe-local-variable 'identity)))
#+END_SRC
** =git-gutter= ** =git-gutter=
Shows =git diff= in the left margin if the file is being tracked by =git=. Shows =git diff= in the left margin if the file is being tracked by =git=.