diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-10 21:00:23 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-10 21:00:23 +0200 |
commit | 3b0bf421991ba76a4bfef969b117a95d5bc7a7f4 (patch) | |
tree | f2aa4ad76d1056489a2bc39b22b550bdec0c373b /.config/emacs | |
parent | 6bd3791ac26c1a9cf19b75c2d42dff0ea3532cef (diff) |
emacs: Add x-comment
Diffstat (limited to '.config/emacs')
-rw-r--r-- | .config/emacs/init.el | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index ea03454..1ce62ab 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -79,6 +79,11 @@ it convenient to use in ‘thread-last’." (apply function arguments) (recenter)) +(defmacro x-comment (&rest body) + "Comment out BODY. A cleaner alternative to line-commenting a region." + (declare (indent 0) (ignore body)) + nil) + ;;; Rational Defaults (prefer-coding-system 'utf-8) (savehist-mode) @@ -261,13 +266,14 @@ tabs, regardless of the value of ‘indent-tabs-mode’." ;;; Completions ;; Disable corfu for now (it’s causing Emacs to crash) -;; (use-package corfu -;; :hook ((prog-mode . corfu-mode)) -;; :custom -;; (corfu-auto t) -;; (corfu-cycle t) -;; (corfu-auto-prefix 1) -;; (corfu-auto-delay 0)) +(x-comment + (use-package corfu + :hook ((prog-mode . corfu-mode)) + :custom + (corfu-auto t) + (corfu-cycle t) + (corfu-auto-prefix 1) + (corfu-auto-delay 0))) (use-package company :init @@ -457,12 +463,13 @@ existing grammars." (use-package yasnippet :after eglot) -;; (use-package eglot-tempel -;; :init -;; (with-eval-after-load 'eglot -;; (add-hook 'eglot-managed-mode-hook -;; (λ (unless (default-value eglot-tempel-mode) -;; (eglot-tempel-mode)))))) +(x-comment + (use-package eglot-tempel + :init + (with-eval-after-load 'eglot + (add-hook 'eglot-managed-mode-hook + (λ (unless (default-value eglot-tempel-mode) + (eglot-tempel-mode))))))) ;;; Automatically Create Directories (defun x-auto-create-directories (original-function filename &rest arguments) |