[emacs] use lean-input as default input method, toggled with C-\
authorAmin Bandali <bandali@gnu.org>
Tue, 30 Oct 2018 03:28:22 +0000 (23:28 -0400)
committerAmin Bandali <bandali@gnu.org>
Tue, 30 Oct 2018 03:28:22 +0000 (23:28 -0400)
super handy for inserting logical symbols like ∧,∨,→,↔,≡,≜,∩,∪,λ,∘,⋯

init.org

index 75e92ee..3448670 100644 (file)
--- a/init.org
+++ b/init.org
@@ -1134,9 +1134,13 @@ TODO: break this giant source block down into individual org sections.
 #+begin_src emacs-lisp
 (eval-when-compile (defvar lean-mode-map))
 (use-package lean-mode
+  :defer 2
   :bind (:map lean-mode-map
-              ("S-SPC" . company-complete)))
-#+end_src
+              ("S-SPC" . company-complete))
+  :config
+  (require 'lean-input)
+  (setq default-input-method "Lean"))
+  #+end_src
 
 ** Haskell