diff options
author | Yuchen Pei <id@ypei.org> | 2023-10-14 12:18:38 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-10-14 12:18:38 +1100 |
commit | 0383ed224a7708315f3da83d5e809c597b0e888a (patch) | |
tree | 8e2c180e2e9b41dc7c51b0bbe210d79c840944a5 /emacs/.emacs.d/init | |
parent | ad1cdc1f55bf90f635365b728b91888edf31fa6e (diff) |
[emacs] Fix notes and shell cycle and creation.
One function to switch or cycle default notes indirect buffers.
One to switch or cycle shell mode buffers.
Diffstat (limited to 'emacs/.emacs.d/init')
-rw-r--r-- | emacs/.emacs.d/init/ycp-buffer.el | 2 | ||||
-rw-r--r-- | emacs/.emacs.d/init/ycp-complete.el | 2 | ||||
-rw-r--r-- | emacs/.emacs.d/init/ycp-org.el | 2 | ||||
-rw-r--r-- | emacs/.emacs.d/init/ycp-prog.el | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/emacs/.emacs.d/init/ycp-buffer.el b/emacs/.emacs.d/init/ycp-buffer.el index 6096869..3629efe 100644 --- a/emacs/.emacs.d/init/ycp-buffer.el +++ b/emacs/.emacs.d/init/ycp-buffer.el @@ -37,7 +37,7 @@ "M-s v" #'my-buffers-vc-root ;; F7: Cycle or create buffers with the same base buffer as the ;; current buffer - "<f7>" #'my-create-or-switch-indirect-buffers + "<f10>" #'my-create-or-switch-indirect-buffers ;; F8: Cycle or create buffers with the same major mode as the ;; current buffer "<f8>" #'my-buffer-create-or-cycle-same-mode diff --git a/emacs/.emacs.d/init/ycp-complete.el b/emacs/.emacs.d/init/ycp-complete.el index f76ebbb..285c6c9 100644 --- a/emacs/.emacs.d/init/ycp-complete.el +++ b/emacs/.emacs.d/init/ycp-complete.el @@ -241,6 +241,8 @@ (:install t) (:delay 10) (setq marginalia-max-relative-age 0) + (my-keybind minibuffer-local-map + "M-A" #'marginalia-cycle) (marginalia-mode 1)) (setq tempel-path diff --git a/emacs/.emacs.d/init/ycp-org.el b/emacs/.emacs.d/init/ycp-org.el index 221eaf7..b20f33e 100644 --- a/emacs/.emacs.d/init/ycp-org.el +++ b/emacs/.emacs.d/init/ycp-org.el @@ -440,7 +440,7 @@ (my-package my-org (:delay 10) (my-keybind global-map - "<f6>" #'my-org-open-default-notes-file) + "<f6>" #'my-org-open-or-cycle-notes) (my-keybind org-mode-map "C-c 1" #'my-org-insert-date-range "C-c ns" #'my-org-substitute-gnus-link-after-archiving diff --git a/emacs/.emacs.d/init/ycp-prog.el b/emacs/.emacs.d/init/ycp-prog.el index 6696aaf..222e912 100644 --- a/emacs/.emacs.d/init/ycp-prog.el +++ b/emacs/.emacs.d/init/ycp-prog.el @@ -120,7 +120,7 @@ '(shell-mode . my-shell-with-directory)) (my-keybind comint-mode-map "<f2>" #'my-comint-restart) (add-hook 'shell-mode-hook 'my-shell-disable-company-if-remote) - (my-keybind global-map "<f10>" #'my-switch-or-create-shell-buffer) + (my-keybind global-map "<f7>" #'my-shell-open-or-cycle) ) (my-package eshell |