summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.el7
-rw-r--r--macros/mrl_macros.macs2
2 files changed, 8 insertions, 1 deletions
diff --git a/init.el b/init.el
index bd5f81e..ce37e80 100644
--- a/init.el
+++ b/init.el
@@ -28,6 +28,10 @@
(setq use-package-always-ensure t)
(require 'use-package)
+;; my macros
+(add-to-list 'load-path "~/.emacs.d/macros/mrl_macros.macs")
+
+;; easy revert buffer, which I never use
(global-set-key (kbd "C-c R") (lambda () (interactive) (revert-buffer t t)))
;; start-stop emacs
@@ -224,7 +228,8 @@ Restart works only on graphic display."
;; markdown mode
(use-package markdown-mode
:ensure t
- :config
+ :bind (:map markdown-mode-map
+ ("C-c C-v" . mrl/markdown-clear-checkbox))
:hook (markdown-mode-hook . (lambda ()
(when buffer-file-name
(add-hook 'after-save-hook
diff --git a/macros/mrl_macros.macs b/macros/mrl_macros.macs
new file mode 100644
index 0000000..4fbd80f
--- /dev/null
+++ b/macros/mrl_macros.macs
@@ -0,0 +1,2 @@
+(fset 'mrl/markdown-clear-check-box
+ (kmacro-lambda-form [?\C-f backspace ? ?\C-n ?\C-f ?\C-b ?\C-b] 0 "%d"))