all repos — archive/dotfiles @ c1b163f6790521a80be588a2bc2b8f0cf790061f

Superseded by nixfiles

Emacs: Don't try to setup cyphejor on old Emacsen (v2)
Alan Pearce alan@alanpearce.uk
Sun, 09 Apr 2017 11:46:01 +0200
commit

c1b163f6790521a80be588a2bc2b8f0cf790061f

parent

cf641adb86b549bcbdd2c696923dd853309c2930

1 files changed, 16 insertions(+), 16 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -322,22 +322,22 @@ Diminishing major modes does not happen in the same manner as minor modes.
 
 #+BEGIN_SRC emacs-lisp
-(use-package cyphejor
-  :defer 2
-  :if (not (version<= emacs-version "24.4"))
-  :config (progn
-            (setq cyphejor-rules `(("emacs"       "ε")
-                                   ("diff"        "Δ")
-                                   ("js2"         "js")
-                                   ("magit-status" ,(char-to-string (-find #'char-displayable-p '(11942 5848 177))))
-                                   ("inferior"    "i" :prefix)
-                                   ("interaction" "i" :prefix)
-                                   ("interactive" "i" :prefix)
-                                   ("menu"        "▤" :postfix)
-                                   ("ledger"      "Ledger")
-                                   ("mode"        "")
-                                   ("shell"       "sh" :postfix)))
-            (cyphejor-mode 1)))
+(unless (version<= emacs-version "24.4")
+  (use-package cyphejor
+    :defer 2
+    :config (progn
+              (setq cyphejor-rules `(("emacs"       "ε")
+                                     ("diff"        "Δ")
+                                     ("js2"         "js")
+                                     ("magit-status" ,(char-to-string (-find #'char-displayable-p '(11942 5848 177))))
+                                     ("inferior"    "i" :prefix)
+                                     ("interaction" "i" :prefix)
+                                     ("interactive" "i" :prefix)
+                                     ("menu"        "▤" :postfix)
+                                     ("ledger"      "Ledger")
+                                     ("mode"        "")
+                                     ("shell"       "sh" :postfix)))
+              (cyphejor-mode 1))))
 #+END_SRC