Fix relative line numbers not working
This commit is contained in:
parent
60d3301557
commit
2c13475d3d
16
config.org
16
config.org
|
|
@ -52,11 +52,15 @@ Display line numbers for all Programming Modes.
|
|||
Add hook to enable display-line-numbers-mode on all programming major modes:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
|
||||
(add-hook 'org-mode-hook 'display-line-numbers-mode)
|
||||
|
||||
;; Alternatively, globally
|
||||
;; (global-display-line-numbers-mode)
|
||||
#+END_SRC
|
||||
*** Relative Line Numbers
|
||||
Relative line numbers
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq display-line-numbers 'relative)
|
||||
(add-hook 'display-line-numbers-mode-hook (lambda () (setq display-line-numbers 'relative)))
|
||||
#+END_SRC
|
||||
*** Tab Width
|
||||
Change tab width.
|
||||
|
|
@ -291,6 +295,9 @@ Install the package, enable it and ensure that it always is installed:
|
|||
("★" "Star" "Show stars" (lambda (&rest _) (show-stars)) warning)
|
||||
("?" "" "?/h" #'show-help nil "<" ">"))
|
||||
))
|
||||
|
||||
;; Ensure dashboard gets started up even if the hook fails
|
||||
(dashboard-open)
|
||||
#+END_SRC
|
||||
** Performance
|
||||
*** Gcmh Mode
|
||||
|
|
@ -593,6 +600,8 @@ Install the package, enable it and ensure that it always is installed, and then
|
|||
(projectile-mode))
|
||||
#+END_SRC
|
||||
** Auto Completion
|
||||
Autocompletion can also be handled by ACM in LSP Bridge.
|
||||
|
||||
*** Which Key
|
||||
Which Key is an insanely useful package that will automatically show you the possible key combinations to finish a binded keychord.
|
||||
Install the package, enable it and ensure that it always is installed, and then make sure that which-key is enabled by default:
|
||||
|
|
@ -812,7 +821,7 @@ For evil mode:
|
|||
:config
|
||||
(global-evil-mc-mode 1)
|
||||
:bind
|
||||
("C-c m" . 'evil-mc-make-all-cursors)
|
||||
("C-c m" . 'evil-mc-make-cursor-here)
|
||||
:bind
|
||||
("C-c C-m" . 'evil-mc-make-and-goto-next-match))
|
||||
#+END_SRC
|
||||
|
|
@ -969,7 +978,8 @@ Flycheck is a modern version of Flymake, provides error messages
|
|||
(use-package flycheck
|
||||
:ensure t
|
||||
:config
|
||||
(add-hook 'after-init-hook #'global-flycheck-mode))
|
||||
(add-hook 'after-init-hook #'global-flycheck-mode)
|
||||
(add-hook 'prog-mode-hook #'flycheck-mode))
|
||||
|
||||
;; Display errors inline
|
||||
(use-package flycheck-inline
|
||||
|
|
|
|||
Loading…
Reference in New Issue