mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 03:33:03 +03:00
feat(emacs): visual -> relative line numbers & limit async comp
This commit is contained in:
parent
741c6d77fa
commit
4f50f53ae1
2 changed files with 11 additions and 2 deletions
|
|
@ -41,6 +41,9 @@
|
|||
|
||||
(setq my/slow-ssh (string= (getenv "IS_TRAMP") "true"))
|
||||
|
||||
(when my/lowpower
|
||||
(setq comp-async-jobs-number 1))
|
||||
|
||||
(use-package conda
|
||||
:straight t
|
||||
:config
|
||||
|
|
@ -582,7 +585,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(global-display-line-numbers-mode 1)
|
||||
(line-number-mode nil)
|
||||
(setq display-line-numbers-type 'visual)
|
||||
(setq display-line-numbers-type 'relative)
|
||||
(column-number-mode)
|
||||
|
||||
(show-paren-mode 1)
|
||||
|
|
|
|||
|
|
@ -289,6 +289,12 @@ And the following is true if Emacs is meant to be used with TRAMP over slow ssh
|
|||
#+begin_src emacs-lisp
|
||||
(setq my/slow-ssh (string= (getenv "IS_TRAMP") "true"))
|
||||
#+end_src
|
||||
*** Native compilation
|
||||
Set number of jobs to 1 on low-power machines
|
||||
#+begin_src emacs-lisp
|
||||
(when my/lowpower
|
||||
(setq comp-async-jobs-number 1))
|
||||
#+end_src
|
||||
** Anaconda & environment
|
||||
[[https://www.anaconda.com/][Anaconda]] is a free package and environment manager. I currently use it to manage multiple versions of Python and Node.js
|
||||
|
||||
|
|
@ -1158,7 +1164,7 @@ Line numbers
|
|||
#+begin_src emacs-lisp
|
||||
(global-display-line-numbers-mode 1)
|
||||
(line-number-mode nil)
|
||||
(setq display-line-numbers-type 'visual)
|
||||
(setq display-line-numbers-type 'relative)
|
||||
(column-number-mode)
|
||||
#+end_src
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue