emacs - ditaa mode mapping
authorPeng Li <seudut@gmail.com>
Mon, 14 Nov 2016 03:29:57 +0000 (11:29 +0800)
committerPeng Li <seudut@gmail.com>
Mon, 14 Nov 2016 03:29:57 +0000 (11:29 +0800)
emacs.d/config.org

index 06c90d8..7eff6df 100644 (file)
@@ -792,10 +792,8 @@ Always indents header, and hide header leading starts so that no need type =#+ST
       (error nil)))
 
   ;; ditaa artist mode
-  (add-hook 'artist-mode-hook (lambda ()
-                                (interactive)
-                                (define-key artist-mode-map [down-mouse-3] 'artist-mouse-choose-operation)))
-
+  (with-eval-after-load "artist"
+    (define-key artist-mode-map [down-mouse-3] 'artist-mouse-choose-operation))
 #+END_SRC
 *** plantUML
 [[http://eschulte.github.io/babel-dev/DONE-integrate-plantuml-support.html][DONE-integrate-plantuml-support]]