Compare commits
6 commits
b20f578afa
...
cf47b7f750
Author | SHA1 | Date | |
---|---|---|---|
cf47b7f750 | |||
f8e5e602d6 | |||
576d74050e | |||
f5260d33bf | |||
66b7f9b05e | |||
55136714ea |
1 changed files with 39 additions and 5 deletions
44
config.org
44
config.org
|
@ -348,6 +348,12 @@ And disable this for some modes.
|
|||
(add-hook 'eww-mode-hook (lambda () (display-line-numbers-mode -1)))
|
||||
#+end_src
|
||||
|
||||
But when Emacs shows line numbers, they should be relative. Why? Ever tried =20j= in Evil mode or =C-u 20 C-p= in Emacs?
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq display-line-numbers-type 'relative)
|
||||
#+end_src
|
||||
|
||||
** Replace selected text by typing
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -467,7 +473,9 @@ During the last weeks I got used to using a light theme during daytime and a dar
|
|||
|
||||
(defun mmk2410/switch-theme (theme)
|
||||
(mapcar 'disable-theme custom-enabled-themes)
|
||||
(load-theme theme t))
|
||||
(load-theme theme t)
|
||||
(mmk2410/org-font-adjust-headlines)
|
||||
(mmk2410/org-font-adjust-variable-pitch))
|
||||
|
||||
(defun mmk2410/switch-theme-night ()
|
||||
(interactive)
|
||||
|
@ -868,7 +876,8 @@ Hide emphasis markers. While this sometimes is very distracting it mostly looks
|
|||
I like to have larger headlines in Org for better identifying them. The configuration of [[https://config.daviwil.com/emacs#fonts-and-bullets][David Wilson]] was a large help in this regard.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(with-eval-after-load 'org
|
||||
(defun mmk2410/org-font-adjust-headlines ()
|
||||
"Adjust headline sizes, font family and weight"
|
||||
(dolist (face '((org-level-1 . 1.4)
|
||||
(org-level-2 . 1.3)
|
||||
(org-level-3 . 1.2)
|
||||
|
@ -879,12 +888,15 @@ I like to have larger headlines in Org for better identifying them. The configur
|
|||
(org-level-8 . 1.1)))
|
||||
(set-face-attribute (car face) nil :font "Open Sans" :weight 'bold :height (cdr face))))
|
||||
|
||||
(with-eval-after-load 'org
|
||||
(mmk2410/org-font-adjust-headlines))
|
||||
#+end_src
|
||||
|
||||
When using a variable-pitch font this also applies to stuff like code blocks. The following block resets this change for these unwanted faces.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(with-eval-after-load 'org
|
||||
(defun mmk2410/org-font-adjust-variable-pitch ()
|
||||
"Re-delare certain org font as fixed pitch when using variable pitch mode."
|
||||
(org-indent-mode)
|
||||
(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch))
|
||||
|
@ -893,6 +905,9 @@ When using a variable-pitch font this also applies to stuff like code blocks. Th
|
|||
(set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch))
|
||||
|
||||
(with-eval-after-load 'org
|
||||
(mmk2410/org-font-adjust-variable-pitch))
|
||||
#+end_src
|
||||
|
||||
** Org Superstar Mode
|
||||
|
@ -1589,7 +1604,11 @@ Source: [[https://github.com/fxbois/web-mode][GitHub: fxbois/web-mode]]
|
|||
("\\.mustache\\'" . web-mode)
|
||||
("\\.djhtml\\'" . web-mode)
|
||||
("\\.vue\\'" . web-mode)
|
||||
("\\.blade\\.php\\'" . web-mode)))
|
||||
("\\.blade\\.php\\'" . web-mode))
|
||||
:config
|
||||
(setq web-mode-script-padding 0)
|
||||
(setq web-mode-code-indent-offset 2)
|
||||
(setq web-mode-markup-indent-offset 2))
|
||||
#+end_src
|
||||
|
||||
** TypoScript
|
||||
|
@ -1603,6 +1622,13 @@ Source: [[https://github.com/ksjogo/typoscript-mode][GitHub: ksjogo/typoscript-m
|
|||
:mode "\\.typoscript\\'")
|
||||
#+end_src
|
||||
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package js
|
||||
:config
|
||||
(setq js-indent-level 2))
|
||||
#+end_src
|
||||
|
||||
** YAML
|
||||
|
||||
YAML major mode for Emacs.
|
||||
|
@ -2119,7 +2145,7 @@ Now define the contexts.
|
|||
(string-prefix-p "/work" (mu4e-message-field msg :maildir))))
|
||||
:vars '( ( user-mail-address . "m.kapfer@emplify-software.de" )
|
||||
( user-full-name . "Marcel Kapfer" )
|
||||
( message-signature-file . nil)
|
||||
( message-signature-file . "~/dotfiles/dot-work/signature/mu4e")
|
||||
( mu4e-sent-folder . "/work/Sent Items" )
|
||||
( mu4e-drafts-folder . "/work/Drafts" )
|
||||
( mu4e-trash-folder . "/work/Trash" )
|
||||
|
@ -2169,6 +2195,14 @@ Now define the contexts.
|
|||
|
||||
** Other settings
|
||||
|
||||
The [[https://github.com/org-mime/org-mime][org-mime]] package thankfully allows sending HTML mails from mu4e. Not that I like HTML mails but I need to have a special HTML message signature for work.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package org-mime
|
||||
:after (org mu4e)
|
||||
:config (setq org-mime-library 'mml))
|
||||
#+end_src
|
||||
|
||||
Mu4e displays a message in the minibuffer after refreshing. And since I run mbsync and mu index (through emacsclient) automatically every few minutes these messages can get quite distracting. Luckily mu4e provides an option to disable these index messages.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue