(Emacs)+nice features that work with vim motions
This commit is contained in:
@@ -2307,6 +2307,10 @@ opposing style.
|
|||||||
:hook
|
:hook
|
||||||
(c-mode-hook . auto-fill-mode)
|
(c-mode-hook . auto-fill-mode)
|
||||||
(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
|
:pretty
|
||||||
(c-mode-hook
|
(c-mode-hook
|
||||||
("puts" . "φ")
|
("puts" . "φ")
|
||||||
@@ -2339,6 +2343,7 @@ opposing style.
|
|||||||
("return" . "⟼"))
|
("return" . "⟼"))
|
||||||
:init
|
:init
|
||||||
(setq-default c-basic-offset 2)
|
(setq-default c-basic-offset 2)
|
||||||
|
(setq-default c-auto-newline t)
|
||||||
(setq-default c-default-style '((other . "user")))
|
(setq-default c-default-style '((other . "user")))
|
||||||
|
|
||||||
(with-eval-after-load "autoinsert"
|
(with-eval-after-load "autoinsert"
|
||||||
@@ -2627,6 +2632,11 @@ appropriately.
|
|||||||
("for" . "∀")
|
("for" . "∀")
|
||||||
("mapc" . "∀")
|
("mapc" . "∀")
|
||||||
("mapcar" . "∀"))
|
("mapcar" . "∀"))
|
||||||
|
:general
|
||||||
|
(:states '(normal motion visual)
|
||||||
|
:keymaps '(emacs-lisp-mode-map lisp-mode-map)
|
||||||
|
")" #'sp-next-sexp
|
||||||
|
"(" #'sp-previous-sexp)
|
||||||
:config
|
:config
|
||||||
(defun +dx/lisp-indent-function (indent-point state)
|
(defun +dx/lisp-indent-function (indent-point state)
|
||||||
(let ((normal-indent (current-column))
|
(let ((normal-indent (current-column))
|
||||||
|
|||||||
Reference in New Issue
Block a user