diff options
author | jao <jao@gnu.org> | 2021-11-04 04:39:53 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-11-04 04:39:53 +0000 |
commit | 00d955a9afeed63fca2ce283efc5faef8e351000 (patch) | |
tree | 9c77471d65db1579585e674753590c8fec94df1f /init.org | |
parent | e7335de29ab69a9d0c58d519a35676781b9432de (diff) | |
download | elibs-00d955a9afeed63fca2ce283efc5faef8e351000.tar.gz elibs-00d955a9afeed63fca2ce283efc5faef8e351000.tar.bz2 |
switching to exwm buffers
Diffstat (limited to 'init.org')
-rw-r--r-- | init.org | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1034,7 +1034,7 @@ #+end_src *** same mode #+begin_src emacs-lisp - (defun jao-buffer-same-mode (&optional mode pre-fn) + (defun jao-buffer-same-mode (&optional mode pre-fn switch-fn) (interactive) (let* ((mode (or mode major-mode)) (modes (if (symbolp mode) (list mode) mode)) @@ -1044,7 +1044,7 @@ ',modes)))) (buff (read-buffer "Buffer: " nil t pred))) (when pre-fn (funcall pre-fn)) - (pop-to-buffer buff))) + (if switch-fn (funcall switch-fn buff) (pop-to-buffer buff)))) (global-set-key (kbd "C-c C-b") #'jao-buffer-same-mode) #+end_src *** projects |