General tweaks
This commit is contained in:
parent
3d30844070
commit
db7cf68775
8 changed files with 24 additions and 21 deletions
|
@ -65,16 +65,17 @@ invokes the repl. Takes the same arguements as `rtog/add-repl'."
|
|||
and COMMAND is a key (for `quickrun--language-alist'), and will be registered
|
||||
in `quickrun--major-mode-alist'.
|
||||
3. If MODE is not a string and COMMAND is an alist, see `quickrun-add-command':
|
||||
(quickrun-add-command MODE COMMAND :mode MODE)"
|
||||
(quickrun-add-command MODE COMMAND :mode MODE)."
|
||||
`(after! quickrun
|
||||
,(if (stringp command)
|
||||
`(push ',(cons mode command)
|
||||
,(if (stringp mode)
|
||||
'quickrun-file-alist
|
||||
'quickrun--major-mode-alist))
|
||||
`(quickrun-add-command
|
||||
,(symbol-name mode)
|
||||
',command :mode ',mode))))
|
||||
,(cond ((stringp command)
|
||||
`(push ',(cons mode command)
|
||||
,(if (stringp mode)
|
||||
'quickrun-file-alist
|
||||
'quickrun--major-mode-alist)))
|
||||
((listp command)
|
||||
`(quickrun-add-command
|
||||
,(symbol-name mode)
|
||||
',command :mode ',mode)))))
|
||||
|
||||
(def-package! quickrun
|
||||
:commands (quickrun
|
||||
|
|
|
@ -86,8 +86,8 @@
|
|||
(evil-ex-nohighlight)))
|
||||
(advice-add 'evil-force-normal-state :after '+evil*esc)
|
||||
|
||||
;; Don't move cursor on indent
|
||||
(defun +evil*static-reindent (orig-fn &rest args)
|
||||
"Don't move cursor on indent."
|
||||
(save-excursion (apply orig-fn args)))
|
||||
(advice-add 'evil-indent :around '+evil*static-reindent)
|
||||
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
(advice-add 'evil-force-normal-state :after '+syntax-checkers|flycheck-buffer))
|
||||
|
||||
|
||||
(def-package! flycheck-pos-tip :after flycheck
|
||||
(def-package! flycheck-pos-tip
|
||||
:after flycheck
|
||||
:config
|
||||
(setq flycheck-pos-tip-timeout 10
|
||||
flycheck-display-errors-delay 0.5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue