commit 5c03c021ccf2df655ee973e500cb8f4b518cc5b4
parent d2172c858a62f412b52d8c10992249921079bbe7
Author: Alex Balgavy <alex@balgavy.eu>
Date: Tue, 29 Jun 2021 22:08:49 +0200
emacs: hide line numbers in PDF, load Magit
Diffstat:
2 files changed, 26 insertions(+), 14 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org
@@ -159,6 +159,11 @@
(lean-mode . (lambda () (define-key lean-mode-map (kbd "S-SPC") #'company-complete))))
#+end_src
+** magit
+ #+begin_src emacs-lisp
+ (use-package magit)
+ #+end_src
+
* Interface
** GUI elements
Get rid of all bars.
@@ -181,19 +186,26 @@
#+end_src
** Appearance
- Highlight the current line:
-
- #+begin_src emacs-lisp
- (global-hl-line-mode)
- (show-paren-mode 1)
- #+end_src
-
- Relative line numbers:
-
- #+begin_src emacs-lisp
- (setq display-line-numbers-type 'relative)
- (global-display-line-numbers-mode)
- #+end_src
+*** Cursor line
+ Highlight the current line:
+
+ #+begin_src emacs-lisp
+ (global-hl-line-mode)
+ (show-paren-mode 1)
+ #+end_src
+*** Line numbers
+ Relative line numbers:
+
+ #+begin_src emacs-lisp
+ (setq display-line-numbers-type 'relative)
+ (global-display-line-numbers-mode)
+ #+end_src
+
+ Don't display them in specific modes:
+
+ #+begin_src emacs-lisp
+ (add-hook 'doc-view-mode-hook (lambda () (display-line-numbers-mode 0)))
+ #+end_src
* Auto-Save files
By default, auto-save files ("#file#") are placed in the same directory as the file itself.
diff --git a/emacs/init.el b/emacs/init.el
@@ -12,7 +12,7 @@
'(custom-safe-themes
'("f2927d7d87e8207fa9a0a003c0f222d45c948845de162c885bf6ad2a255babfd" "e3c64e88fec56f86b49dcdc5a831e96782baf14b09397d4057156b17062a8848" "f4876796ef5ee9c82b125a096a590c9891cec31320569fc6ff602ff99ed73dca" default))
'(package-selected-packages
- '(lean-mode markdown-mode anki-connect anki-editor doom-themes all-the-icons use-package-ensure which-key use-package org-bullets helm exec-path-from-shell)))
+ '(magit lean-mode markdown-mode anki-connect anki-editor doom-themes all-the-icons use-package-ensure which-key use-package org-bullets helm exec-path-from-shell)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.