mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
Organize the section on visual stuff
This commit is contained in:
parent
c30e1f28e1
commit
4f5e1d9420
41
init.org
41
init.org
@ -395,8 +395,11 @@
|
|||||||
|
|
||||||
** Visual
|
** Visual
|
||||||
|
|
||||||
I am using a lot from [[https://github.com/rougier/nano-emacs][rougier's N Λ N O Emacs]], starting with the theme. For
|
I am using a lot from [[https://github.com/rougier/nano-emacs][rougier's N Λ N O Emacs]], starting with the theme.
|
||||||
the white theme, I keep the light background toned down a touch.
|
|
||||||
|
*** Theme
|
||||||
|
|
||||||
|
For the light theme, I keep the light background toned down a touch.
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq nano-light-background "#fafafa")
|
(setq nano-light-background "#fafafa")
|
||||||
@ -411,6 +414,22 @@
|
|||||||
(load-theme theme t))
|
(load-theme theme t))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
I want to be able to quickly switch between a light and a dark theme.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(defun cycle-themes ()
|
||||||
|
"Returns a function that lets you cycle your themes."
|
||||||
|
(let ((themes '(nano-light nano-dark)))
|
||||||
|
(lambda ()
|
||||||
|
(interactive)
|
||||||
|
;; Rotates the thme cycle and changes the current theme.
|
||||||
|
(let ((rotated (nconc (cdr themes) (list (car themes)))))
|
||||||
|
(load-theme (car (setq themes rotated)) t))
|
||||||
|
(message (concat "Switched to " (symbol-name (car themes)))))))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
*** Mode line
|
||||||
|
|
||||||
This is the default setup for [[https://github.com/rougier/nano-modeline][N Λ N O Modeline]] after version 1.0.0:
|
This is the default setup for [[https://github.com/rougier/nano-modeline][N Λ N O Modeline]] after version 1.0.0:
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@ -448,19 +467,7 @@
|
|||||||
(add-to-list 'default-frame-alist '(internal-border-width . 24))
|
(add-to-list 'default-frame-alist '(internal-border-width . 24))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
I want to be able to quickly switch between a light and a dark theme.
|
*** Font
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(defun cycle-themes ()
|
|
||||||
"Returns a function that lets you cycle your themes."
|
|
||||||
(let ((themes '(nano-light nano-dark)))
|
|
||||||
(lambda ()
|
|
||||||
(interactive)
|
|
||||||
;; Rotates the thme cycle and changes the current theme.
|
|
||||||
(let ((rotated (nconc (cdr themes) (list (car themes)))))
|
|
||||||
(load-theme (car (setq themes rotated)) t))
|
|
||||||
(message (concat "Switched to " (symbol-name (car themes)))))))
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Pick the first of the following fonts that is installed on the system.
|
Pick the first of the following fonts that is installed on the system.
|
||||||
|
|
||||||
@ -485,6 +492,8 @@
|
|||||||
("psi" . ?ψ)))
|
("psi" . ?ψ)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
*** Centering with Olivetti
|
||||||
|
|
||||||
[[https://github.com/rnkn/olivetti][Olivetti]] is a package that simply centers the text of a buffer. It is very
|
[[https://github.com/rnkn/olivetti][Olivetti]] is a package that simply centers the text of a buffer. It is very
|
||||||
simple and beautiful. The default width is just a bit short.
|
simple and beautiful. The default width is just a bit short.
|
||||||
|
|
||||||
@ -1075,7 +1084,7 @@
|
|||||||
** Python
|
** Python
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq python-shell-interpreter "python3")
|
(setq python-shell-interpreter "python3.10")
|
||||||
(add-hook 'python-mode-hook
|
(add-hook 'python-mode-hook
|
||||||
(lambda () (setq forward-sexp-function nil)))
|
(lambda () (setq forward-sexp-function nil)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Loading…
Reference in New Issue
Block a user