mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
use-package N Λ N O
This commit is contained in:
parent
832b887232
commit
de923565b8
70
init.org
70
init.org
@ -207,9 +207,7 @@
|
|||||||
|
|
||||||
(let* ((package--builtins nil)
|
(let* ((package--builtins nil)
|
||||||
(packages
|
(packages
|
||||||
'(nano-modeline ; N Λ N O modeline
|
'(nix-mode ; Major mode for editing .nix files
|
||||||
nano-theme ; N Λ N O theme
|
|
||||||
nix-mode ; Major mode for editing .nix files
|
|
||||||
olivetti ; Minor mode for a nice writing environment
|
olivetti ; Minor mode for a nice writing environment
|
||||||
org ; Outline-based notes management and organizer
|
org ; Outline-based notes management and organizer
|
||||||
org-bullets ; Show bullets in org-mode as UTF-8 characters
|
org-bullets ; Show bullets in org-mode as UTF-8 characters
|
||||||
@ -417,8 +415,11 @@
|
|||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
(setq nano-light-background "#fafafa"
|
;; N Λ N O theme
|
||||||
nano-light-highlight "#f5f7f8")
|
(use-package nano-theme
|
||||||
|
:init
|
||||||
|
(setq nano-light-background "#fafafa"
|
||||||
|
nano-light-highlight "#f5f7f8"))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -462,47 +463,34 @@
|
|||||||
|
|
||||||
** Mode line
|
** 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 my 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
|
||||||
|
|
||||||
(require 'nano-modeline)
|
;; N Λ N O modeline
|
||||||
(add-hook 'prog-mode-hook #'nano-modeline-prog-mode)
|
(use-package nano-modeline
|
||||||
(add-hook 'text-mode-hook #'nano-modeline-text-mode)
|
:hook ((prog-mode . nano-modeline-prog-mode)
|
||||||
(add-hook 'org-mode-hook #'nano-modeline-org-mode)
|
(text-mode . nano-modeline-text-mode)
|
||||||
(add-hook 'pdf-view-mode-hook #'nano-modeline-pdf-mode)
|
(org-mode . nano-modeline-org-mode)
|
||||||
(add-hook 'mu4e-headers-mode-hook #'nano-modeline-mu4e-headers-mode)
|
(pdf-view-mode . nano-modeline-pdf-mode)
|
||||||
(add-hook 'mu4e-view-mode-hook #'nano-modeline-mu4e-message-mode)
|
(mu4e-headers-mode . nano-modeline-mu4e-headers-mode)
|
||||||
(add-hook 'elfeed-show-mode-hook #'nano-modeline-elfeed-entry-mode)
|
(mu4e-view-mode . nano-modeline-mu4e-message-mode)
|
||||||
(add-hook 'elfeed-search-mode-hook #'nano-modeline-elfeed-search-mode)
|
(elfeed-show-mode . nano-modeline-elfeed-entry-mode)
|
||||||
(add-hook 'term-mode-hook #'nano-modeline-term-mode)
|
(elfeed-search-mode . nano-modeline-elfeed-search-mode)
|
||||||
(add-hook 'xwidget-webkit-mode-hook #'nano-modeline-xwidget-mode)
|
(term-mode . nano-modeline-term-mode)
|
||||||
(add-hook 'messages-buffer-mode-hook #'nano-modeline-message-mode)
|
(xwidget-webkit-mode . nano-modeline-xwidget-mode)
|
||||||
(add-hook 'org-capture-mode-hook #'nano-modeline-org-capture-mode)
|
(messages-buffer-mode . nano-modeline-message-mode)
|
||||||
(add-hook 'org-agenda-mode-hook #'nano-modeline-org-agenda-mode)
|
(org-capture-mode . nano-modeline-org-capture-mode)
|
||||||
|
(org-agenda-mode . nano-modeline-org-agenda-mode))
|
||||||
|
|
||||||
#+end_src
|
;; Disable the default modeline and add a small margin around the frame
|
||||||
|
:init
|
||||||
|
(setq-default mode-line-format nil)
|
||||||
|
(add-to-list 'default-frame-alist '(internal-border-width . 24))
|
||||||
|
;; Set nano-modeline-text-mode as default
|
||||||
|
:config
|
||||||
|
(nano-modeline-text-mode 1))
|
||||||
|
|
||||||
We set the ~nano-modeline-text-mode~ as default with:
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
|
|
||||||
(nano-modeline-text-mode 1)
|
|
||||||
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
And disable the default modeline.
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
|
|
||||||
(setq-default mode-line-format nil)
|
|
||||||
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
It looks best if we add a small margin around the edges of the frame.
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(add-to-list 'default-frame-alist '(internal-border-width . 24))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Font
|
** Font
|
||||||
|
Loading…
Reference in New Issue
Block a user