commit 3bc37907b6099c21f01552621cad206a412e5d09
parent 43ba3e41743a4d9b97fdebddcb946254b5090088
Author: Alex Balgavy <alex@balgavy.eu>
Date: Thu, 24 Jun 2021 21:33:25 +0200
emacs: relative line numbers
Diffstat:
2 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org
@@ -4,7 +4,7 @@
#+begin_src emacs-lisp
(add-hook 'focus-out-hook #'garbage-collect)
#+end_src
-
+
* Package management
** Repositories (MELPA & Org)
#+begin_src emacs-lisp
@@ -132,10 +132,11 @@
(show-paren-mode 1)
#+end_src
- Line numbers:
+ Relative line numbers:
#+begin_src emacs-lisp
- (global-linum-mode 1)
+ (setq display-line-numbers-type 'relative)
+ (global-display-line-numbers-mode)
#+end_src
* Theme
@@ -175,13 +176,6 @@
(load-theme 'doom-one-light t))
#+end_src
-* Follow symlinks
- Make sure to follow symlinks without prompting:
-
- #+begin_src emacs-lisp
- (setq vc-follow-symlinks t)
- #+end_src
-
* Backup files
By default, backup files (those with a tilde) are saved in the same directory as the currently edited file.
This setting puts them in ~/.local/share/emacs/saves.
diff --git a/emacs/init.el b/emacs/init.el
@@ -1,3 +1,6 @@
+;; Follow symlinks without prompting (the org file is a symlink)
+(setq vc-follow-symlinks t)
+
(org-babel-load-file
(expand-file-name "config.org" user-emacs-directory))
@@ -7,7 +10,7 @@
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
- '(doom-themes all-the-icons use-package-ensure which-key use-package org-bullets helm exec-path-from-shell)))
+ '(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.