Tweak some evil keys
This commit is contained in:
parent
779787d56c
commit
2aed414a95
1 changed files with 13 additions and 1 deletions
|
@ -787,6 +787,16 @@ If no direction is given, don't split."
|
|||
(define-key yas-minor-mode-map [(tab)] nil)
|
||||
(define-key yas-minor-mode-map (kbd "C-\\") 'yas-expand))
|
||||
|
||||
(defun oni:outline-toggle-entry ()
|
||||
(interactive)
|
||||
(if (outline-on-heading-p)
|
||||
(if (eql (save-excursion
|
||||
(end-of-line)
|
||||
(outline-invisible-p))
|
||||
'outline)
|
||||
(outline-show-entry)
|
||||
(outline-hide-entry))))
|
||||
|
||||
(defun multiplication-table (number &optional upto)
|
||||
""
|
||||
(interactive "nMultiplication table for: \nP")
|
||||
|
@ -1061,7 +1071,9 @@ from myaethon2.core.decorators import (
|
|||
(add-hook 'org-capture-mode-hook #'evil-insert-state)
|
||||
(require 'evil-nerd-commenter)
|
||||
(define-key evil-normal-state-map ",s" 'oni:evil-sort-lines-operator)
|
||||
(add-hook 'before-save-hook #'oni:maybe-switch-to-normal-state))
|
||||
(add-hook 'before-save-hook #'oni:maybe-switch-to-normal-state)
|
||||
(evil-declare-key 'motion org-mode-map (kbd "RET") #'org-return)
|
||||
(evil-declare-key 'normal outline-minor-mode-map (kbd "TAB") #'oni:outline-toggle-entry))
|
||||
|
||||
(stante-after eww
|
||||
(setq eww-download-path ; Don't go to ~/Downloads
|
||||
|
|
Loading…
Reference in a new issue