Adds binding to toggle between relative and absolute line display.
This commit is contained in:
25
.emacs
25
.emacs
@@ -87,20 +87,8 @@
|
||||
:config
|
||||
(delight '((eldoc-mode nil "eldoc")
|
||||
(subword-mode nil "subword")))
|
||||
|
||||
)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; window separator
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
(defun atu/change-window-divider ()
|
||||
(let ((display-table (or buffer-display-table standard-display-table)))
|
||||
(set-display-table-slot display-table 5 ?│)
|
||||
(set-window-display-table (selected-window) display-table)))
|
||||
|
||||
(add-hook 'window-configuration-change-hook 'atu/change-window-divider)
|
||||
|
||||
|
||||
(use-package multiple-cursors
|
||||
:bind (("C-c m >" . 'mc/mark-next-like-this)
|
||||
("C-c m <" . 'mc/mark-previous-like-this)
|
||||
@@ -280,7 +268,7 @@
|
||||
:bind (("C-x t t" . treemacs)
|
||||
("M-0" . treemacs-select-window))
|
||||
:config
|
||||
; (add-hook 'treemacs-mode-hook (lambda () (display-line-numbers-mode -1)))
|
||||
(add-hook 'treemacs-mode-hook (lambda () (display-line-numbers-mode -1)))
|
||||
(treemacs-project-follow-mode t)
|
||||
)
|
||||
|
||||
@@ -632,8 +620,19 @@
|
||||
;(doom-themes-treemacs-config)
|
||||
;; Corrects (and improves) org-mode's native fontification.
|
||||
(doom-themes-org-config)
|
||||
(defun atu/toggle-display-line-mode ()
|
||||
"toggle between relative and absolute display-line-mode"
|
||||
(interactive)
|
||||
(if (eq display-line-numbers 'relative)
|
||||
(setq display-line-numbers 'absolute)
|
||||
(setq display-line-numbers 'relative)
|
||||
)
|
||||
)
|
||||
:init
|
||||
(global-whitespace-mode 1)
|
||||
:bind (
|
||||
("C-c d l" . 'atu/toggle-display-line-mode)
|
||||
)
|
||||
)
|
||||
|
||||
(custom-set-faces
|
||||
|
||||
Reference in New Issue
Block a user