aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-06-20 22:39:17 +1000
committerYuchen Pei <id@ypei.org>2023-06-20 22:39:17 +1000
commit880517b4798e201c22e3d318c21b492fe676154b (patch)
tree2a590031383418ad0f2adcc64c5be94b4b6d62e8 /emacs
parent3b48109e4502c7ab26200c0418b8d72af9ae627c (diff)
Some small fixes
- bbdb: integration with gnus and message - disable tree-sitter for c-mode - my-buffer-quick-major-mode: switch rather than pop to buffer - rofi config: comment timeout and filebrowser due to issues with lower versions
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init/ycp-gnus.el6
-rw-r--r--emacs/.emacs.d/init/ycp-prog.el4
-rw-r--r--emacs/.emacs.d/lisp/my/my-buffer.el2
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)