diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-01-13 04:57:37 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-01-13 04:57:37 +0000 |
commit | 461ba3f977a580e1c3f136c677e7ec6253f2775b (patch) | |
tree | 6027b5c76c7cfaf648f7ba39c532de2343d3cd91 /Emacs/.config/emacs | |
parent | e01145cff367f2f0e697c6be337a1b3374e14968 (diff) | |
download | dotfiles-461ba3f977a580e1c3f136c677e7ec6253f2775b.tar.gz dotfiles-461ba3f977a580e1c3f136c677e7ec6253f2775b.tar.bz2 dotfiles-461ba3f977a580e1c3f136c677e7ec6253f2775b.zip |
(Emacs)+nice features that work with vim motions
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 2b38008..2f45cb2 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -2307,6 +2307,10 @@ opposing style. :hook (c-mode-hook . auto-fill-mode) (c++-mode-hook . auto-fill-mode) + :general + (:states '(normal motion visual) + "(" #'c-beginning-of-statement + ")" #'c-end-of-statement) :pretty (c-mode-hook ("puts" . "φ") @@ -2339,6 +2343,7 @@ opposing style. ("return" . "⟼")) :init (setq-default c-basic-offset 2) + (setq-default c-auto-newline t) (setq-default c-default-style '((other . "user"))) (with-eval-after-load "autoinsert" @@ -2627,6 +2632,11 @@ appropriately. ("for" . "∀") ("mapc" . "∀") ("mapcar" . "∀")) + :general + (:states '(normal motion visual) + :keymaps '(emacs-lisp-mode-map lisp-mode-map) + ")" #'sp-next-sexp + "(" #'sp-previous-sexp) :config (defun +dx/lisp-indent-function (indent-point state) (let ((normal-indent (current-column)) |