Tweak some evil keys

This commit is contained in:
Tom Willemse 2015-04-27 16:05:18 +02:00
parent 779787d56c
commit 2aed414a95

View file

@ -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