git.fiddlerwoaroof.com
Browse code

emacs: only load site-lisp if present

Ed Langley authored on 03/08/2019 19:10:29
Showing 1 changed files
... ...
@@ -31,7 +31,12 @@
31 31
   (load "utils"))
32 32
 
33 33
 (cold-boot)
34
-(load "site-lisp")
34
+
35
+(use-package jeison
36
+  :ensure t)
37
+
38
+(when (locate-library "site-lisp")
39
+  (load "site-lisp"))
35 40
 (load-package-configuration 'evil)
36 41
 
37 42
 
... ...
@@ -478,7 +483,6 @@ With a prefix ARG invalidates the cache first."
478 483
 
479 484
 (use-package highlight-parentheses :ensure t :config
480 485
   (global-highlight-parentheses-mode 1))
481
-
482 486
 
483 487
 
484 488
 (use-package magit :ensure t
... ...
@@ -488,7 +492,6 @@ With a prefix ARG invalidates the cache first."
488 492
   ;;(magit-define-popup-action 'magit-dispatch-popup ?j "Browse remote" 'browse-at-remote)
489 493
   'magit-dispatch)
490 494
 
491
-
492 495
 (defvar *fwoar-git-repos*
493 496
   (file-name-as-directory
494 497
    (expand-file-name (car (file-expand-wildcards "~/git*_repos"))
... ...
@@ -543,11 +546,16 @@ With a prefix ARG invalidates the cache first."
543 546
       (delete-window)
544 547
     (treemacs-select-window)))
545 548
 
549
+(defun no-line-numbers ()
550
+  (display-line-numbers-mode -1))
546 551
 (use-package treemacs
547 552
   :ensure t
548 553
   :config
549 554
   (setq treemacs-is-never-other-window t)
550
-  (global-set-key (kbd "s-e") 'fwoar--activate-treemacs))
555
+  (global-set-key (kbd "s-e") 'fwoar--activate-treemacs)
556
+  (global-set-key (kbd "s-1") 'fwoar--activate-treemacs)
557
+  (add-hook 'treemacs-mode-hook 'no-line-numbers)
558
+  )
551 559
 
552 560
 (use-package treemacs-evil
553 561
   :after treemacs evil