リビジョン | 1d25f8a13ac26abaeb44703ef09ef99db2feba4b (tree) |
---|---|
日時 | 2023-05-08 18:02:42 |
作者 | Markus Prepens <markus.prepens@gmai...> |
コミッター | Markus Prepens |
using face-remapping-alist with :inherit
@@ -103,12 +103,13 @@ forward-slashes." | ||
103 | 103 | ;;(set-frame-size (selected-frame) 100 20) |
104 | 104 | ;;(set-frame-font "Cascadia Code 11" t t) |
105 | 105 | ;;(set-frame-font "Courier Prime 12" t t) |
106 | - (set-frame-font "JuliaMono 10" t t) | |
106 | + (set-frame-font "JuliaMono 12" t t) | |
107 | 107 | (set-frame-parameter (selected-frame) 'internal-border-width 5) |
108 | 108 | (setq frame-inherited-parameters '(internal-border-width))) |
109 | 109 | (progn |
110 | - (menu-bar-mode -1) | |
111 | - (blink-cursor-mode -1))) | |
110 | + (setq confirm-kill-emacs nil) | |
111 | + (menu-bar-mode -1) | |
112 | + (blink-cursor-mode -1))) | |
112 | 113 | |
113 | 114 | ;;;;;;;;;; |
114 | 115 | ;; The history mode |
@@ -162,13 +163,11 @@ forward-slashes." | ||
162 | 163 | (interactive) |
163 | 164 | (if icomplete-mode |
164 | 165 | (progn |
165 | - (message "Goodbye, Fido :(") | |
166 | 166 | (icomplete-mode -1) |
167 | 167 | (icomplete-vertical-mode -1) |
168 | 168 | (fido-mode -1) |
169 | 169 | (fido-vertical-mode -1)) |
170 | 170 | (progn |
171 | - (message "Hello, Fido :)") | |
172 | 171 | (icomplete-mode 1) |
173 | 172 | (icomplete-vertical-mode 1) |
174 | 173 | (fido-mode 1) |
@@ -231,9 +230,10 @@ forward-slashes." | ||
231 | 230 | (org-verbatim (:height 1.55) org-verbatim) |
232 | 231 | (header-line (:height 4.0) variable-pitch) |
233 | 232 | (org-document-title (:height 1.75) org-document-title) |
234 | - (org-level-1 (:height 1.4) variable-pitch) | |
235 | - (org-level-2 (:height 1.3) variable-pitch) | |
236 | - (org-level-3 (:height 1.1) variable-pitch) | |
233 | + (org-level-1 (:inherit variable-pitch :height 1.4) org-level-1) | |
234 | + (org-level-2 (:inherit variable-pitch :height 1.3) org-level-2) | |
235 | + (org-level-3 (:inherit variable-pitch :height 1.1) org-level-3) | |
236 | + (org-level-4 (:inherit variable-pitch :height 1.1) org-level-4) | |
237 | 237 | (org-code (:family "Courier Prime") org-code) |
238 | 238 | (org-block (:family "Courier Prime") org-block) |
239 | 239 | (org-table (:family "Courier Prime") org-table) |
@@ -260,7 +260,10 @@ forward-slashes." | ||
260 | 260 | (+skeletons-for-markdown) |
261 | 261 | (toggle-truncate-lines 1) |
262 | 262 | (setq-local face-remapping-alist |
263 | - '((markdown-header-face (:height 4.0) markdown-header-face))) | |
263 | + '((markdown-header-face-1 (:inherit variable-pitch :height 2.0) markdown-header-face-1) | |
264 | + (markdown-header-face-2 (:inherit variable-pitch :height 1.8) markdown-header-face-2) | |
265 | + (markdown-header-face-3 (:inherit variable-pitch :height 1.5) markdown-header-face-3) | |
266 | + (markdown-header-face-4 (:inherit variable-pitch :height 1.0) markdown-header-face-4))) | |
264 | 267 | (let* ((pandoc-command "pandoc -f gfm -t html5 --toc --toc-depth=2") |
265 | 268 | (css-file (concat user-emacs-directory "html-files/pandoc_simple.css")) |
266 | 269 | (html-file (concat user-emacs-directory "html-files/pandoc_template.html"))) |
@@ -637,13 +640,6 @@ reload dir-local variables." | ||
637 | 640 | (call-interactively save-this-mode) |
638 | 641 | (message "applied %s again" save-this-mode))) |
639 | 642 | |
640 | -;; load (optional) quick'n'dirty code snippets | |
641 | -(add-hook 'after-init-hook | |
642 | - (lambda () | |
643 | - ;; Example -- local.el: | |
644 | - ;; (set-frame-font "Cascadia Code 12" t t) | |
645 | - (message "Hello :)"))) | |
646 | - | |
647 | 643 | (add-hook 'buffer-list-update-hook |
648 | 644 | (lambda () |
649 | 645 | (save-excursion |