summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/init.el b/init.el index db9d9b4..554f7e4 100644 --- a/init.el +++ b/init.el
@@ -735,8 +735,11 @@ if ripgrep is installed, otherwise `consult-grep'."
735 735
736 ;; Use a dumb formatter on modes that `apheleia' doesn't work for. 736 ;; Use a dumb formatter on modes that `apheleia' doesn't work for.
737 (hook-defun dumb-auto-format before-save-hook 737 (hook-defun dumb-auto-format before-save-hook
738 (unless (and (fboundp 'apheleia--get-formatter-command) 738 (setq stupid-modes '(makefile-mode))
739 (apheleia--get-formatter-command)) 739 ;; If there's no apheleia formatter for the mode, just indent the buffer.
740 (unless (or (apply #'derived-mode-p stupid-modes)
741 (and (fboundp 'apheleia--get-formatter-command)
742 (apheleia--get-formatter-command)))
740 (indent-region (point-min) (point-max))))) 743 (indent-region (point-min) (point-max)))))
741 744
742(setup (:straight company) 745(setup (:straight company)
@@ -799,8 +802,8 @@ if ripgrep is installed, otherwise `consult-grep'."
799 802
800(setup (:straight geiser)) 803(setup (:straight geiser))
801 804
802(when-let (lisp-bin (or (executable-find "clisp") 805(when-let (lisp-bin (or (executable-find "sbcl")
803 (executable-find "sbcl"))) 806 (executable-find "clisp")))
804 (setup (:straight slime) 807 (setup (:straight slime)
805 (require 'slime-autoloads) 808 (require 'slime-autoloads)
806 (:option inferior-lisp-program lisp-bin) 809 (:option inferior-lisp-program lisp-bin)