use-package N Λ N O

This commit is contained in:
larstvei 2023-06-12 21:39:09 +02:00
parent 832b887232
commit de923565b8

View File

@ -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
;; N Λ N O theme
(use-package nano-theme
:init
(setq nano-light-background "#fafafa" (setq nano-light-background "#fafafa"
nano-light-highlight "#f5f7f8") 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
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
;; Disable the default modeline and add a small margin around the frame
:init
(setq-default mode-line-format nil) (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)) (add-to-list 'default-frame-alist '(internal-border-width . 24))
;; Set nano-modeline-text-mode as default
:config
(nano-modeline-text-mode 1))
#+end_src #+end_src
** Font ** Font