about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-31T11·02+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-31T11·02+0100
commit2c3dbe61b7c35a6536e6be15797c0bb421d3f9b3 (patch)
treea6ba5e9d9eddb1bd826e0888754b2e056870fd4d
parent453596adb2479214f5d8c3ca4ca3998093db04ec (diff)
Remove keybinding logic from fonts.el
For two reasons:
1. I don't use these keybindings.
2. I'm trying to centralize all keybinding logic in keybindings.el.
-rw-r--r--emacs/.emacs.d/wpc/fonts.el16
1 files changed, 0 insertions, 16 deletions
diff --git a/emacs/.emacs.d/wpc/fonts.el b/emacs/.emacs.d/wpc/fonts.el
index ec196d507806..bf22a2ecc226 100644
--- a/emacs/.emacs.d/wpc/fonts.el
+++ b/emacs/.emacs.d/wpc/fonts.el
@@ -18,7 +18,6 @@
 (require 'cycle)
 (require 'device)
 (require 'maybe)
-(require 'general)
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Constants
@@ -34,9 +33,6 @@
     ('work-desktop "8"))
   "My preferred default font-size, which is device specific.")
 
-(defconst fonts/keybindings? t
-  "Install the keybindings when non-nil.")
-
 (defconst fonts/size-step 10
   "The amount (%) by which to increase or decrease a font.")
 
@@ -137,17 +133,5 @@ The size of the font is determined by `fonts/size'."
   (interactive)
   (fonts/whitelist-set (fonts/current)))
 
-(when fonts/keybindings?
-  (progn
-    (general-define-key
-     :prefix "<SPC>"
-     :states '(normal)
-     "Ff" #'fonts/next
-     "Pf" #'fonts/prev)
-    (general-define-key "s-9" #'fonts/ivy-select)
-    (general-define-key "s-0" #'fonts/reset-size)
-    (general-define-key "s-j" #'fonts/decrease-size)
-    (general-define-key "s-k" #'fonts/increase-size)))
-
 (provide 'fonts)
 ;;; fonts.el ends here