summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSomelauw <Somelauw>2017-08-29 20:48:08 +0200
committerSomelauw <Somelauw>2017-08-29 20:48:08 +0200
commit62ff637748037dac5ce130ae359deb617a6bcce2 (patch)
treeed939b78fc820ef8d853e0c1d22b832ee0ce1208 /doc
parent2312cf891f0a58c28a0a263908760e1f5b364434 (diff)
Replace bindings to lambdas by macros
Deprecate evil-org-bol-call and evil-org-eol-call Add evil-org-define-bol-command and evil-org-define-eol-command This looks cleaner and might improve interaction with https://github.com/gabesoft/evil-mc
Diffstat (limited to 'doc')
-rw-r--r--doc/example_config.el8
-rw-r--r--doc/keythemes.org26
2 files changed, 15 insertions, 19 deletions
diff --git a/doc/example_config.el b/doc/example_config.el
index e9682ea..5569710 100644
--- a/doc/example_config.el
+++ b/doc/example_config.el
@@ -14,12 +14,8 @@
(evil-define-key 'normal evil-org-mode-map
(kbd "-") 'org-ctrl-c-minus
(kbd "|") 'org-table-goto-column
- (kbd "M-o") (lambda (arg)
- (interactive "P")
- (evil-org-eol-call #'org-insert-heading arg))
- (kbd "M-t") (lambda (arg)
- (interactive "P")
- (evil-org-eol-call #'org-insert-todo-heading arg)))
+ (kbd "M-o") (evil-org-define-eol-command org-insert-heading)
+ (kbd "M-t") (evil-org-define-eol-command org-insert-todo))
;; Configure leader key
(evil-leader/set-key-for-mode 'org-mode
diff --git a/doc/keythemes.org b/doc/keythemes.org
index 4e7b289..29e1475 100644
--- a/doc/keythemes.org
+++ b/doc/keythemes.org
@@ -127,23 +127,23 @@
** Todo
Disabled by default.
- |-------+---------------------------------------|
- | key | function |
- |-------+---------------------------------------|
- | =t= | org-todo |
- | =T= | org-insert-todo-heading nil |
- | =M-t= | org-insert-todo-heading+org-metaright |
- |-------+---------------------------------------|
+ |-------+----------------------------|
+ | key | function |
+ |-------+----------------------------|
+ | =t= | org-todo |
+ | =T= | org-insert-todo-heading |
+ | =M-t= | org-insert-todo-subheading |
+ |-------+----------------------------|
** Heading
Disabled by default.
- |-------+----------------------------------|
- | key | function |
- |-------+----------------------------------|
- | =O= | org-insert-heading |
- | =M-o= | org-insert-heading+org-metaright |
- |-------+----------------------------------|
+ |-------+-----------------------|
+ | key | function |
+ |-------+-----------------------|
+ | =O= | org-insert-heading |
+ | =M-o= | org-insert-subheading |
+ |-------+-----------------------|
** Commands without default binding
These functions don't have any bindings by default. You can bind them under C-c or another leader key. These functions may have a few bugs. Improvements in the form of pull requests