From 89a4e5b9476951b1d7a07d96fdc3ba4ca435a5f1 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Sat, 2 Nov 2024 23:01:12 -0400 Subject: [PATCH] emacs-configuration: Avoid failing if custom.el is missing Also, adjust some comments. --- user-config/emacs/.emacs.d/config.org | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/user-config/emacs/.emacs.d/config.org b/user-config/emacs/.emacs.d/config.org index e859823..84c8797 100644 --- a/user-config/emacs/.emacs.d/config.org +++ b/user-config/emacs/.emacs.d/config.org @@ -5,8 +5,6 @@ #+PROPERTY: header-args:emacs-lisp :tangle yes :tangle-mode (identity #o444) #+PROPERTY: header-args:shell :tangle no -#+CATEGORY: emacs - * Overview This is a literate emacs configuration which leverages [[https://orgmode.org/][org-mode]]. @@ -184,7 +182,8 @@ as a TODO item. #+begin_src emacs-lisp ;; Load customization's made by customize (setq custom-file (no-littering-expand-var-file-name "custom.el")) - (load custom-file) + (if (file-exists-p custom-file) + (load custom-file)) #+end_src * Set Language Environment @@ -1381,7 +1380,7 @@ settings can likely be replaced by the [[https://github.com/hrs/sensible-default ;; Turn hl-line-mode on globally ;;(global-hl-line-mode) - ;; Activate linum-mode in all buffers used for programming + ;; Activate display-line-numbers-mode in all buffers used for programming (activate-mode-with-hooks (lambda () (display-line-numbers-mode 1)) code-modes) ;; Add little indicators to fringe indicating the location of point in the given window