Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun org-evil-open-below (count)
- "Insert a new line below point and switch to Insert state.
- The insertion will be repeated COUNT times."
- (interactive "p")
- (evil-insert-newline-below)
- (setq evil-insert-count count
- evil-insert-lines t
- evil-insert-vcount nil)
- (evil-insert-state 1)
- (add-hook 'post-command-hook #'evil-maybe-remove-spaces))
- (defun org-evil-open-above (count)
- "Insert a new line above point and switch to Insert state.
- The insertion will be repeated COUNT times."
- (interactive "p")
- (evil-insert-newline-above)
- (setq evil-insert-count count
- evil-insert-lines t
- evil-insert-vcount nil)
- (evil-insert-state 1)
- (add-hook 'post-command-hook #'evil-maybe-remove-spaces))
- (evil-define-key 'normal org-mode-map (kbd "o") 'org-evil-open-below)
- (evil-define-key 'normal org-mode-map (kbd "O") 'org-evil-open-above)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement