Remove global infix in dotspacemacs-global-line-numbers
I feel that it is not needed because it makes not a lot of sense to have it non global since it is a dotfile variable. Also remove ' from the docstring for consistency.
This commit is contained in:
parent
612c3df265
commit
b405752f6c
|
@ -188,9 +188,9 @@ can be toggled through `toggle-transparency'.")
|
|||
overrides the default behavior of Emacs which recenters the point when
|
||||
it reaches the top or bottom of the screen.")
|
||||
|
||||
(defvar dotspacemacs-global-line-numbers nil
|
||||
(defvar dotspacemacs-line-numbers nil
|
||||
"If non nil line numbers are turned on in all `prog-mode' and `text-mode'
|
||||
derivatives. If set to `'relative', also turns on relative line numbers.")
|
||||
derivatives. If set to `relative', also turns on relative line numbers.")
|
||||
|
||||
(defvar dotspacemacs-persistent-server nil
|
||||
"If non nil advises quit functions to keep server open when quitting.")
|
||||
|
|
|
@ -169,9 +169,9 @@ values."
|
|||
;; point when it reaches the top or bottom of the screen. (default t)
|
||||
dotspacemacs-smooth-scrolling t
|
||||
;; If non nil line numbers are turned on in all `prog-mode' and `text-mode'
|
||||
;; derivatives. If set to `'relative', also turns on relative line numbers.
|
||||
;; derivatives. If set to `relative', also turns on relative line numbers.
|
||||
;; (default nil)
|
||||
dotspacemacs-global-line-numbers nil
|
||||
dotspacemacs-line-numbers nil
|
||||
;; If non-nil smartparens-strict-mode will be enabled in programming modes.
|
||||
;; (default nil)
|
||||
dotspacemacs-smartparens-strict-mode nil
|
||||
|
|
|
@ -941,17 +941,17 @@ and ~T~):
|
|||
|
||||
**** Global line numbers
|
||||
Line numbers can be toggled on in all =prog-mode= and =text-mode= buffers by
|
||||
setting the =dotspacemacs-global-line-numbers= variable in your =~/.spacemacs=
|
||||
setting the =dotspacemacs-line-numbers= variable in your =~/.spacemacs=
|
||||
to something different than =nil=.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq-default dotspacemacs-global-line-numbers t)
|
||||
(setq-default dotspacemacs-line-numbers t)
|
||||
#+END_SRC
|
||||
|
||||
If it is set to =relative=, line numbers are show in a relative way:
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq-default dotspacemacs-global-line-numbers 'relative)
|
||||
(setq-default dotspacemacs-line-numbers 'relative)
|
||||
#+END_SRC
|
||||
|
||||
*** Mouse usage
|
||||
|
|
|
@ -173,7 +173,7 @@ It runs `tabulated-list-revert-hook', then calls `tabulated-list-print'."
|
|||
(setq column-number-mode t)
|
||||
;; Activate linum-mode in all prog-mode and text-mode buffers if the setting is
|
||||
;; enabled.
|
||||
(when dotspacemacs-global-line-numbers
|
||||
(when dotspacemacs-line-numbers
|
||||
(add-hook 'prog-mode-hook 'linum-mode)
|
||||
(add-hook 'text-mode-hook 'linum-mode))
|
||||
;; line number
|
||||
|
|
|
@ -1462,7 +1462,7 @@ It will toggle the overlay under point or create an overlay of one character."
|
|||
:commands (linum-relative-toggle linum-relative-on)
|
||||
:init
|
||||
(progn
|
||||
(when (eq dotspacemacs-global-line-numbers 'relative)
|
||||
(when (eq dotspacemacs-line-numbers 'relative)
|
||||
(linum-relative-on))
|
||||
(evil-leader/set-key "tr" 'linum-relative-toggle))
|
||||
:config
|
||||
|
|
Loading…
Reference in New Issue