aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-06-28 00:27:01 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-06-28 00:27:01 +0100
commitefd75015264891bcc42a88df466fd37801e35214 (patch)
tree768ceeadf4a5d22099b17de5774c89e3aa6e2538 /Emacs/.config/emacs
parentd9863a069af358aa6d129684f1904eb99a296451 (diff)
downloaddotfiles-efd75015264891bcc42a88df466fd37801e35214.tar.gz
dotfiles-efd75015264891bcc42a88df466fd37801e35214.tar.bz2
dotfiles-efd75015264891bcc42a88df466fd37801e35214.zip
(Emacs/config)~A few changes
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r--Emacs/.config/emacs/config.org9
1 files changed, 8 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 9969907..c7b3946 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -78,7 +78,8 @@ Let's setup a few things:
save-buffer-coding-system 'utf-8-unix
backup-directory-alist `(("." . ,(no-littering-expand-var-file-name "saves/")))
global-auto-revert-non-file-buffers t
- auto-revert-verbose nil
+ auto-revert-verbose t
+ auto-revert-use-notify nil
select-enable-clipboard t)
:config
(fset 'yes-or-no-p 'y-or-n-p)
@@ -2295,6 +2296,11 @@ projects I work on don't require a heavy server setup to efficiently
edit and check for errors; Emacs provides a lot of functionality. So
by default I've disabled it, using =M-x eglot= to startup the LSP
server when I need it.
+
+2024-06-27: In projects where I do use eglot and I know I will need it
+regardless of file choice, I prefer setting it at the dir-local level
+via an eval form. So I add to the safe values for the eval variable
+to be set.
#+begin_src emacs-lisp
(use-package eglot
:defer t
@@ -2310,6 +2316,7 @@ server when I need it.
eglot-ignored-server-capabilities '(:documentHighlightProvider
:documentOnTypeFormattingProvider
:inlayHintProvider))
+ (add-to-list 'safe-local-variable-values '(eval eglot-ensure))
:config
(add-to-list 'eglot-server-programs '((c++-mode c-mode) "clangd")))
#+end_src