Switch to linum because it has relative numers maybe
This commit is contained in:
parent
2b8ebf3c6c
commit
18079413ec
5
init.el
5
init.el
@ -70,8 +70,9 @@
|
|||||||
(require 'mitch-packages)
|
(require 'mitch-packages)
|
||||||
|
|
||||||
;; Absolute line numbers. Relative ones are an annoyance to set up, sadly.
|
;; Absolute line numbers. Relative ones are an annoyance to set up, sadly.
|
||||||
(global-display-line-numbers-mode)
|
;; (global-display-line-numbers-mode)
|
||||||
(defvar display-line-numbers-width-start t)
|
;; (defvar display-line-numbers-width-start t)
|
||||||
|
|
||||||
|
|
||||||
;; scroll step stuff
|
;; scroll step stuff
|
||||||
(setq scroll-margin 2
|
(setq scroll-margin 2
|
||||||
|
@ -87,10 +87,13 @@ Made solely to reduce lines in the init file."
|
|||||||
(require 'mitch-keybinds))
|
(require 'mitch-keybinds))
|
||||||
|
|
||||||
(defun turn-off-line-numbers ()
|
(defun turn-off-line-numbers ()
|
||||||
"A tiny wrapper around `display-line-numbers-mode'.
|
"A tiny wrapper around `display-line-numbers-mode' or `linum'.
|
||||||
For use in hooks."
|
For use in hooks."
|
||||||
(interactive)
|
(interactive)
|
||||||
(display-line-numbers-mode -1))
|
(if display-line-numbers-mode
|
||||||
|
(display-line-numbers-mode -1))
|
||||||
|
(linum-mode -1)
|
||||||
|
(linum-relative-mode -1))
|
||||||
|
|
||||||
(defun mitch/terminal-setup ()
|
(defun mitch/terminal-setup ()
|
||||||
"A batch of commands to run when opening anything that looks like a terminal.
|
"A batch of commands to run when opening anything that looks like a terminal.
|
||||||
|
@ -98,6 +98,12 @@
|
|||||||
(completion-category-overrides nil)
|
(completion-category-overrides nil)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(use-package linum-relative
|
||||||
|
:diminish
|
||||||
|
:custom (linum-relative-current-symbol "")
|
||||||
|
:init
|
||||||
|
(linum-relative-global-mode 1))
|
||||||
|
|
||||||
;; broken terminal that doesn't compile but at least it's fast when it does
|
;; broken terminal that doesn't compile but at least it's fast when it does
|
||||||
(use-package vterm
|
(use-package vterm
|
||||||
:custom
|
:custom
|
||||||
@ -250,11 +256,6 @@
|
|||||||
:after (org powershell)
|
:after (org powershell)
|
||||||
:custom
|
:custom
|
||||||
(ob-powershell-powershell-command "pwsh"))
|
(ob-powershell-powershell-command "pwsh"))
|
||||||
;; (use-package visual-fill-column
|
|
||||||
;; :config
|
|
||||||
;; (setq-default visual-fill-column-center-text t)
|
|
||||||
;; (setq-default fill-column 140)
|
|
||||||
;; :hook (org-mode . visual-fill-column-mode))
|
|
||||||
(use-package company-org-block
|
(use-package company-org-block
|
||||||
:after (org company))
|
:after (org company))
|
||||||
(use-package org-modern
|
(use-package org-modern
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
(link (:foreground mitch-light-blue :underline 't))
|
(link (:foreground mitch-light-blue :underline 't))
|
||||||
(link-visited (:foreground mitch-mid-violet :underline 't))
|
(link-visited (:foreground mitch-mid-violet :underline 't))
|
||||||
(whitespace-line (:background mitch-dark-red))
|
(whitespace-line (:background mitch-dark-red))
|
||||||
(line-number (:inherit 'fixed-pitch :foreground mitch-light-black :weight 'normal))
|
(line-number (:inherit 'font-lock-comment-delimiter-face))
|
||||||
(line-number-current-line (:inherit 'line-number :foreground mitch-yellow :weight 'bold))
|
(line-number-current-line (:inherit 'line-number :foreground mitch-yellow :weight 'bold))
|
||||||
(linum (:inherit 'line-number))
|
(linum (:inherit 'line-number))
|
||||||
(linum-relative-current-face (:inherit 'line-number-current-line))
|
(linum-relative-current-face (:inherit 'line-number-current-line))
|
||||||
|
Loading…
Reference in New Issue
Block a user