dotfiles

Linux and macOS dotfiles
git clone https://github.com/michaelneuper/dotfiles.git
README | Files | Log | Refs

commit d2e9c470e89f47ea6a5719019110dd751fa99a87
parent 2851088a9c07f797e483f3cbe0d7d21667139b43
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date:   Sun, 11 Jun 2023 17:30:53 +0200

Move some headings to Interface

Diffstat:
M.config/doom/config.el | 42+++++++++++++++++++++---------------------
M.config/doom/config.org | 111++++++++++++++++++++++++++++++++++++++++---------------------------------------
2 files changed, 77 insertions(+), 76 deletions(-)

diff --git a/.config/doom/config.el b/.config/doom/config.el @@ -29,11 +29,26 @@ ;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how ;; they are implemented. -(setq doom-theme 'doom-one) - (setq doom-localleader-key "SPC l" doom-localleader-alt-key "M-SPC l") +;; (setq auto-save-default t +;; make-backup-files t) + +(setq confirm-kill-emacs nil) + +(setq user-full-name "Michael Neuper" + user-mail-address "michael@michaelneuper.com") + +(setq evil-split-window-below t + evil-vsplit-window-right t) + +(defadvice! prompt-for-buffers (&rest _) + :after '(evil-window-split evil-window-vsplit) + (consult-buffer)) + +(setq doom-theme 'doom-one) + (custom-set-faces! '(doom-dashboard-banner :inherit default) '(doom-dashboard-loaded :inherit default)) @@ -46,11 +61,6 @@ (setq display-fill-column-indicator-column 80) (add-hook 'prog-mode-hook #'display-fill-column-indicator-mode) -;; (setq auto-save-default t -;; make-backup-files t) - -(setq confirm-kill-emacs nil) - (when (version< "29.0.50" emacs-version) (pixel-scroll-precision-mode)) @@ -58,9 +68,6 @@ ;; (require 'good-scroll) ;; (good-scroll-mode 1)) -(setq user-full-name "Michael Neuper" - user-mail-address "michael@michaelneuper.com") - (setq doom-font (font-spec :family "Fira Code" :size 12.5) doom-variable-pitch-font (font-spec :family "Noto Sans" :size 15)) @@ -85,12 +92,11 @@ :list nil ) -(setq evil-split-window-below t - evil-vsplit-window-right t) +(use-package! info-colors + :commands (info-colors-fontify-node)) -(defadvice! prompt-for-buffers (&rest _) - :after '(evil-window-split evil-window-vsplit) - (consult-buffer)) +(add-hook 'Info-selection-hook + 'info-colors-fontify-node) (setq doom-fallback-buffer-name "*dashboard*") @@ -128,12 +134,6 @@ :config (dashboard-setup-startup-hook)) -(use-package! info-colors - :commands (info-colors-fontify-node)) - -(add-hook 'Info-selection-hook - 'info-colors-fontify-node) - (nyan-mode) (setq nyan-animate-nyancat t nyan-wavy-trail t) diff --git a/.config/doom/config.org b/.config/doom/config.org @@ -36,13 +36,6 @@ #+end_src * Configuration -** Theme -Use doom-one theme. - -#+begin_src emacs-lisp -(setq doom-theme 'doom-one) -#+end_src - ** Local Leader Key Remap <localleader> from m to l to avoid conflict with spotify bindings. @@ -51,7 +44,53 @@ Remap <localleader> from m to l to avoid conflict with spotify bindings. doom-localleader-alt-key "M-SPC l") #+end_src -** Faces +** Auto-Save and Backup +#+begin_src emacs-lisp +;; (setq auto-save-default t +;; make-backup-files t) +#+end_src + +** Confirm Kill Emacs +Kill emacs without confirming. + +#+begin_src emacs-lisp +(setq confirm-kill-emacs nil) +#+end_src + +** Credentials +#+begin_src emacs-lisp +(setq user-full-name "Michael Neuper" + user-mail-address "michael@michaelneuper.com") +#+end_src + +* Window Management +** Split Window Behaviour +Focus split window. + +#+begin_src emacs-lisp +(setq evil-split-window-below t + evil-vsplit-window-right t) +#+end_src + +** Prompt for Buffers +Ask what buffer to switch to when doing a split. + +#+begin_src emacs-lisp +(defadvice! prompt-for-buffers (&rest _) + :after '(evil-window-split evil-window-vsplit) + (consult-buffer)) +#+end_src + +* Interface +** Basic +*** Theme +Use doom-one theme. + +#+begin_src emacs-lisp +(setq doom-theme 'doom-one) +#+end_src + +*** Faces #+begin_src emacs-lisp (custom-set-faces! '(doom-dashboard-banner :inherit default) @@ -61,14 +100,14 @@ Remap <localleader> from m to l to avoid conflict with spotify bindings. '(dashboard-startup-banner :inherit default)) #+end_src -** Line Numbers +*** Line Numbers Use visual line numbers to avoid wrong line numbers in folded content. #+begin_src emacs-lisp (setq display-line-numbers-type 'visual) #+end_src -** Column Indicator +*** Column Indicator Display column indicator after 80 characters in programming mode. #+begin_src emacs-lisp @@ -76,20 +115,7 @@ Display column indicator after 80 characters in programming mode. (add-hook 'prog-mode-hook #'display-fill-column-indicator-mode) #+end_src -** Auto-Save and Backup -#+begin_src emacs-lisp -;; (setq auto-save-default t -;; make-backup-files t) -#+end_src - -** Confirm Kill Emacs -Kill emacs without confirming. - -#+begin_src emacs-lisp -(setq confirm-kill-emacs nil) -#+end_src - -** Pixel Scroll +*** Pixel Scroll Enable pixel precision scrolling. #+begin_src emacs-lisp @@ -105,13 +131,7 @@ Enable smooth scrolling ;; (good-scroll-mode 1)) #+end_src -** Credentials -#+begin_src emacs-lisp -(setq user-full-name "Michael Neuper" - user-mail-address "michael@michaelneuper.com") -#+end_src - -** Fonts +*** Fonts Set doom fonts. #+begin_src emacs-lisp @@ -148,25 +168,15 @@ Disable certain ligatures. ) #+end_src -* Window Management -** Split Window Behaviour -Window split behaviour. - +*** Info-Colors #+begin_src emacs-lisp -(setq evil-split-window-below t - evil-vsplit-window-right t) -#+end_src - -** Prompt for Buffers -Ask what buffer to switch to when doing a split. +(use-package! info-colors + :commands (info-colors-fontify-node)) -#+begin_src emacs-lisp -(defadvice! prompt-for-buffers (&rest _) - :after '(evil-window-split evil-window-vsplit) - (consult-buffer)) +(add-hook 'Info-selection-hook + 'info-colors-fontify-node) #+end_src -* Interface ** Dashboard Switch to dashboard from doom-dashboard. @@ -212,15 +222,6 @@ Configure dashboard (dashboard-setup-startup-hook)) #+end_src -** Info-Colors -#+begin_src emacs-lisp -(use-package! info-colors - :commands (info-colors-fontify-node)) - -(add-hook 'Info-selection-hook - 'info-colors-fontify-node) -#+end_src - ** Modeline Enable nyan-cat in modeline.