* .emacs.d/init.el: No, I don't want a variable-pitched non-monospaced mode-line.
[~bandali/configs] / .emacs.d / init.el
index 8836a1b..5894ed5 100644 (file)
@@ -362,6 +362,14 @@ This sets each user option VAR's value to the corresponding VALUE.
 (require 'winner)
 (winner-mode 1)
 
+(run-with-idle-timer 0.1 nil #'require 'windmove)
+(with-eval-after-load 'windmove
+  (csetq windmove-wrap-around t)
+  (global-set-key (kbd "M-H") #'windmove-left)
+  (global-set-key (kbd "M-L") #'windmove-right)
+  (global-set-key (kbd "M-K") #'windmove-up)
+  (global-set-key (kbd "M-J") #'windmove-down))
+
 (with-eval-after-load 'compile
   ;; don't display *compilation* buffer on success.  based on
   ;; https://stackoverflow.com/a/17788551, with changes to use `cl-letf'
@@ -439,10 +447,12 @@ This sets each user option VAR's value to the corresponding VALUE.
 
 ;; info
 (with-eval-after-load 'info
-  (add-to-list
-   'Info-directory-list
-   (expand-file-name
-    (convert-standard-filename "info/") source-directory)))
+  (csetq
+   Info-directory-list
+   `(,@Info-directory-list
+     ,(expand-file-name
+       (convert-standard-filename "info/") source-directory)
+     "/usr/share/info/")))
 
 ;; faces
 (when (display-graphic-p)
@@ -453,9 +463,11 @@ This sets each user option VAR's value to the corresponding VALUE.
            ;;      `(;; :line-width -1
            ;;        :style released-button))
            )
+      ;; (set-face-attribute 'fixed-pitch nil :family "Source Code Pro")
+      (set-face-attribute 'fixed-pitch nil :family "Inconsolata")
       (set-face-attribute 'mode-line nil
                           :background grey ;; :box box
-                          )
+                          :inherit 'fixed-pitch)
       ;; (set-face-attribute 'mode-line-inactive nil
       ;;                     :background darker-grey :box box)
       )))