diff options
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)) |