dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit f67cfd48e4072e8cae1a3dd3c8705a69ec599754
parent 60d443c448fc3163e88c132b1178af317269dbe9
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Wed, 30 Jun 2021 20:33:36 +0200

emacs: fix init file, have to use funcall & emacs-lisp in src block

Diffstat:
Memacs/config.org | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/emacs/config.org b/emacs/config.org @@ -31,7 +31,7 @@ Define the themes I want: - #+begin_src elisp + #+begin_src emacs-lisp (setq dark-theme 'doom-one) (setq light-theme 'doom-acario-light) #+end_src @@ -39,15 +39,18 @@ Change theme depending on the current system theme. The way I check for dark mode is defined in 'dark-mode-p'; currently I use the presence of the ~/.config/dark-theme file to indicate when dark theme is set. A function ending in '-p' is a predicate, i.e. returns true or false. + If calling a function that's in a variable, you have to use 'funcall'. #+begin_src emacs-lisp (let ((dark-mode-p (lambda () (file-exists-p "~/.config/dark-theme")))) - - (if (dark-mode-p) + (if (funcall dark-mode-p) (load-theme dark-theme t) (load-theme light-theme t))) #+end_src + #+RESULTS: + : t + * Garbage collection Garbage-collect on focus-out, Emacs /should/ feel snappier.