diff options
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.emacs.d/init/ycp-gnus.el | 6 | ||||
-rw-r--r-- | emacs/.emacs.d/init/ycp-prog.el | 4 | ||||
-rw-r--r-- | emacs/.emacs.d/lisp/my/my-buffer.el | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/emacs/.emacs.d/init/ycp-gnus.el b/emacs/.emacs.d/init/ycp-gnus.el index 407d89b..c2b64d5 100644 --- a/emacs/.emacs.d/init/ycp-gnus.el +++ b/emacs/.emacs.d/init/ycp-gnus.el @@ -181,9 +181,11 @@ ;;; bbdb (my-package bbdb - (:delay 60) - (bbdb-initialize) + (:delay 5) + (bbdb-initialize 'gnus 'message) + (bbdb-mua-auto-update-init 'gnus 'message) (setq bbdb-mail-user-agent 'gnus-user-agent) + (setq bbdb-update-records-p 'create) (require 'my-bbdb) (my-keybind bbdb-mode-map "C-c C-c" #'my-bbdb-done) (setq bbdb-phone-style nil diff --git a/emacs/.emacs.d/init/ycp-prog.el b/emacs/.emacs.d/init/ycp-prog.el index f5adcfa..11c4f62 100644 --- a/emacs/.emacs.d/init/ycp-prog.el +++ b/emacs/.emacs.d/init/ycp-prog.el @@ -405,6 +405,10 @@ '(haskell-mode . haskell)) (add-to-list 'tree-sitter-major-mode-language-alist '(phps-mode . php)) + ;; disable tree sitter for c/c++ and use eglot instead + ;; FIXME: make it so it is only disabled with eglot on + (add-to-list 'tree-sitter-major-mode-language-alist + '(c-mode)) (global-tree-sitter-mode) (add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)) diff --git a/emacs/.emacs.d/lisp/my/my-buffer.el b/emacs/.emacs.d/lisp/my/my-buffer.el index 5ff09a7..63b16be 100644 --- a/emacs/.emacs.d/lisp/my/my-buffer.el +++ b/emacs/.emacs.d/lisp/my/my-buffer.el @@ -81,7 +81,7 @@ With a prefix-arg, prompt for major mode." (not (derived-mode-p mode)))) (setq buffers (cdr buffers))) (if buffers - (pop-to-buffer (car buffers)) + (switch-to-buffer (car buffers)) (message "No buffers in %S" mode)))) (defun my-buffer-switch-or-create-major-mode (mode) |