-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Org markdown: Improve consistency of key bindings for markup language
- Loading branch information
Showing
3 changed files
with
80 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,11 @@ | |
"a" nil "ma" 'org-agenda | ||
"c" nil "mA" 'org-archive-subtree | ||
"o" nil "mC" 'evil-org-recompute-clocks | ||
"l" nil "ml" 'evil-org-open-links | ||
"t" nil "mt" 'org-show-todo-tree) | ||
"l" nil "m <RET>" 'evil-org-open-links | ||
"t" nil "mT" 'org-show-todo-tree) | ||
(evil-define-key 'normal evil-org-mode-map | ||
"O" 'evil-open-above | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
syl20bnr
via email
Owner
|
||
) | ||
(spacemacs|diminish evil-org-mode " ⓔ" " e")))) | ||
|
||
(defun org/init-org () | ||
|
@@ -53,20 +56,43 @@ | |
'(spacemacs|hide-lighter org-indent-mode)) | ||
(setq org-startup-indented t) | ||
|
||
(defmacro spacemacs|org-emphasize (fname char) | ||
"Make function for setting the emphasize in org mode" | ||
`(defun ,fname () (interactive) | ||
(org-emphasize ,char)) | ||
) | ||
(evil-leader/set-key-for-mode 'org-mode | ||
"mc" 'org-capture | ||
"md" 'org-deadline | ||
"me" 'org-export-dispatch | ||
"mf" 'org-set-effort | ||
"mi" 'org-clock-in | ||
"mI" 'org-clock-in | ||
"mj" 'helm-org-in-buffer-headings | ||
"mo" 'org-clock-out | ||
"mm" 'org-ctrl-c-ctrl-c | ||
(concat "m" dotspacemacs-major-mode-leader-key) 'org-ctrl-c-ctrl-c | ||
"mn" 'org-narrow-to-subtree | ||
"mN" 'widen | ||
"mO" 'org-clock-out | ||
"mq" 'org-clock-cancel | ||
"mr" 'org-refile | ||
"ms" 'org-schedule) | ||
"mS" 'org-schedule | ||
;; headings | ||
"mhh" 'org-insert-heading-after-current | ||
"mhH" 'org-insert-heading | ||
;; insertion of common elements | ||
"mil" 'org-insert-link | ||
"mif" 'org-footnote-new | ||
;; images and other link types have no commands in org mode-line | ||
;; could be inserted using yasnippet? | ||
;; text manipulation | ||
"mtb" (spacemacs|org-emphasize spacemacs/org-bold ?*) | ||
"mti" (spacemacs|org-emphasize spacemacs/org-italic ?/) | ||
"mtc" (spacemacs|org-emphasize spacemacs/org-code ?~) | ||
"mtu" (spacemacs|org-emphasize spacemacs/org-underline ?_) | ||
"mtv" (spacemacs|org-emphasize spacemacs/org-verbose ?=) | ||
"mts" (spacemacs|org-emphasize spacemacs/org-strike-through ?+) | ||
"mt <SPC>" (spacemacs|org-emphasize spacemacs/org-clear ? ) | ||
) | ||
|
||
(eval-after-load "org-agenda" | ||
'(progn | ||
|
@@ -81,7 +107,13 @@ | |
(progn | ||
(require 'org-indent) | ||
(define-key global-map "\C-cl" 'org-store-link) | ||
(define-key global-map "\C-ca" 'org-agenda)))) | ||
(define-key global-map "\C-ca" 'org-agenda) | ||
(evil-leader/set-key | ||
"Cc" 'org-capture | ||
) | ||
)) | ||
|
||
) | ||
|
||
(defun org/init-org-bullets () | ||
(use-package org-bullets | ||
|
I used this a lot to open new headings from normal mode, what should I be using instead now that this is gone?