Move Theme to UI, undo-tree to Editing

This commit is contained in:
contrapunctus 2022-01-14 13:06:20 +05:30
parent 7320598352
commit d78ef06fb3
1 changed files with 60 additions and 61 deletions

121
init.org
View File

@ -186,6 +186,36 @@ NAME is the name of the process and its buffer."
("C-c" . volume-raise-10)
("C-r" . volume-lower-10)))
#+END_SRC
* emacs settings
:PROPERTIES:
:CUSTOM_ID: emacs-settings
:END:
#+BEGIN_SRC emacs-lisp
(use-package emacs
:config
(setq gc-cons-threshold 100000000
delete-by-moving-to-trash t
trash-directory "~/.trash/"
history-length 10000
use-file-dialog nil
load-prefer-newer t
;; disable the disabled commands behavior
disabled-command-function nil
custom-file "~/.emacs.d/custom.el"
edebug-print-length nil
ispell-dictionary "en")
(setq-default undo-limit (* 80 1000))
(load custom-file))
#+END_SRC
** gnutls
#+BEGIN_SRC emacs-lisp
(use-package gnutls
:config
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36749
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
#+END_SRC
* user interface
:PROPERTIES:
:CUSTOM_ID: ui
@ -244,10 +274,27 @@ NAME is the name of the process and its buffer."
(moody-replace-vc-mode))
#+END_SRC
** theme
** Theme
:PROPERTIES:
:CUSTOM_ID: ui-theme
:END:
Must put this after loading the custom file, or I get prompted about the theme each time.
#+BEGIN_SRC emacs-lisp
(require 'doom-themes)
#+END_SRC
#+BEGIN_SRC emacs-lisp :load no :tangle no
(load-theme 'doom-acario-dark)
;; Similar to doom-acario-dark, with paler colors. But Org headlines are all much too similar for my liking.
(load-theme 'doom-material)
#+END_SRC
#+BEGIN_SRC emacs-lisp
(load-theme 'doom-molokai)
#+END_SRC
#+BEGIN_SRC emacs-lisp
;(load-theme 'distinguished t)
@ -286,36 +333,6 @@ NAME is the name of the process and its buffer."
)
#+END_SRC
* emacs settings
:PROPERTIES:
:CUSTOM_ID: emacs-settings
:END:
#+BEGIN_SRC emacs-lisp
(use-package emacs
:config
(setq gc-cons-threshold 100000000
delete-by-moving-to-trash t
trash-directory "~/.trash/"
history-length 10000
use-file-dialog nil
load-prefer-newer t
;; disable the disabled commands behavior
disabled-command-function nil
custom-file "~/.emacs.d/custom.el"
edebug-print-length nil
ispell-dictionary "en")
(setq-default undo-limit (* 80 1000))
(load custom-file))
#+END_SRC
** gnutls
#+BEGIN_SRC emacs-lisp
(use-package gnutls
:config
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36749
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
#+END_SRC
* esup, the Emacs StartUp Profiler
#+BEGIN_SRC emacs-lisp
(use-package esup
@ -514,6 +531,18 @@ as links into an Org or Markdown document."
(markdown-display-inline-images)))
#+END_SRC
** undo-tree
:PROPERTIES:
:CUSTOM_ID: editing-undo-tree
:END:
#+BEGIN_SRC emacs-lisp
(use-package undo-tree
:commands global-undo-tree-mode
:if (not (featurep 'evil))
:diminish undo-tree-mode
:init (global-undo-tree-mode))
#+END_SRC
** ediff
:PROPERTIES:
:CUSTOM_ID: editing-ediff
@ -4725,16 +4754,6 @@ Potentially useful - https://www.draketo.de/software/emacs-javascript.html
(use-package powerline)
#+END_SRC
* undo-tree
#+BEGIN_SRC emacs-lisp
(use-package undo-tree
:commands global-undo-tree-mode
:if (not (featurep 'evil))
:diminish undo-tree-mode
:init (global-undo-tree-mode))
#+END_SRC
**
#+BEGIN_SRC emacs-lisp
(with-eval-after-load 'text-mode
@ -4931,26 +4950,6 @@ ARGS are ignored."
:commands (wgrep-change-to-wgrep-mode))
#+END_SRC
* Theme
Must put this after loading the custom file, or I get prompted about the theme each time.
#+BEGIN_SRC emacs-lisp
(require 'doom-themes)
#+END_SRC
#+BEGIN_SRC emacs-lisp :load no
(load-theme 'doom-acario-dark)
#+END_SRC
Similar to doom-acario-dark, with paler colors. But Org headlines are all much too similar for my liking.
#+BEGIN_SRC emacs-lisp :load no
(load-theme 'doom-material)
#+END_SRC
#+BEGIN_SRC emacs-lisp
(load-theme 'doom-molokai)
#+END_SRC
* enabling disabled commands
#+BEGIN_SRC emacs-lisp
(mapc (lambda (command)