dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 2c2c716f8d15ac11922e259b53e42d3128810cdb
parent 63bbe45542431485ee548553c584855c2eb0cf73
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Thu, 13 Jan 2022 19:25:27 +0100

emacs: add bindings for {transpose,raise}-sexp{s,}

Diffstat:
Memacs/config.org | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/emacs/config.org b/emacs/config.org @@ -1023,6 +1023,19 @@ I'll use the keybinding that's standard on macOS: minibuffer-depth-indicate-mode t) #+end_src +** Sexp manipulation +When I write lisp, sometimes I want to switch two sexps (e.g. ~(one) (two)~ → ~(two) (one)~), so a key binding is nice for that: + +#+begin_src emacs-lisp + (global-set-key (kbd "C-S-t") #'transpose-sexps) +#+end_src + +Also, to raise a sexp (e.g. ~(one (two))~ → ~(two)~): + +#+begin_src emacs-lisp + (global-set-key (kbd "C-S-u") #'raise-sexp) +#+end_src + * Notmuch Define some saved searches (i.e. mailboxes):