diff options
author | Yuchen Pei <id@ypei.org> | 2023-06-20 22:39:17 +1000 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-06-20 22:39:17 +1000 |
commit | 880517b4798e201c22e3d318c21b492fe676154b (patch) | |
tree | 2a590031383418ad0f2adcc64c5be94b4b6d62e8 | |
parent | 3b48109e4502c7ab26200c0418b8d72af9ae627c (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
-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 | ||||
-rw-r--r-- | misc/.config/rofi/config.rasi | 17 |
4 files changed, 18 insertions, 11 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) diff --git a/misc/.config/rofi/config.rasi b/misc/.config/rofi/config.rasi index 936ce05..0784e08 100644 --- a/misc/.config/rofi/config.rasi +++ b/misc/.config/rofi/config.rasi @@ -140,12 +140,13 @@ configuration { /* me-select-entry: "MousePrimary";*/ /* me-accept-entry: "MouseDPrimary";*/ /* me-accept-custom: "Control+MouseDPrimary";*/ - timeout { - action: "kb-cancel"; - delay: 0; - } - filebrowser { - directories-first: true; - sorting-method: "name"; - } +/* The following does not seem to work on lower versions. */ +/* timeout {*/ +/* action: "kb-cancel";*/ +/* delay: 0;*/ +/* }*/ +/* filebrowser {*/ +/* directories-first: true;*/ +/* sorting-method: "name";*/ +/* }*/ } |