• R/O
  • SSH

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂3e7ae8bd66dbcb97201874b55377505df2294b0b (tree)
時間2023-05-03 20:24:42
作者badcoff33
Commiterbadcoff33

Log Message

prefer toggle-truncate-lines instead var truncate-lines

Change Summary

差異

diff -r 196a7be34820 -r 3e7ae8bd66db init.el
--- a/init.el Fri Apr 28 20:18:12 2023 +0200
+++ b/init.el Wed May 03 13:24:42 2023 +0200
@@ -251,17 +251,19 @@
251251 (add-hook 'markdown-mode-hook
252252 (lambda ()
253253 (+skeletons-for-markdown)
254- (setq truncate-lines nil)
254+ (toggle-truncate-lines 1)
255+ (setq-local face-remapping-alist
256+ '((markdown-header-face (:height 4.0) markdown-header-face)))
255257 (let* ((pandoc-command "pandoc -f gfm -t html5 --toc --toc-depth=2")
256258 (css-file (concat user-emacs-directory "html-files/pandoc_simple.css"))
257259 (html-file (concat user-emacs-directory "html-files/pandoc_template.html")))
258- (setq markdown-command (concat pandoc-command
259- " --metadata title=" (file-name-sans-extension
260- (file-name-nondirectory buffer-file-name))
261- (when (and (file-exists-p css-file)
262- (file-exists-p html-file))
263- (concat " --css=" css-file " --template=" html-file)))))
264- (local-set-key (kbd "C-c a") 'rst-adjust-adornment)))
260+ (setq markdown-command-needs-filename t
261+ markdown-command
262+ (concat pandoc-command
263+ " --metadata title=" (file-name-sans-extension
264+ (file-name-nondirectory buffer-file-name))
265+ (if (file-exists-p css-file) (concat " --css=" css-file) "")
266+ (if (file-exists-p html-file) (concat " --template=" html-file)))))))
265267
266268 (add-hook 'eshell-mode-hook
267269 (lambda ()
@@ -294,7 +296,7 @@
294296 (lambda ()
295297 (eldoc-mode 1)
296298 (indent-tabs-mode -1)
297- (setq truncate-lines t)
299+ (toggle-truncate-lines 1)
298300 (prettify-symbols-mode 1)
299301 (setq hippie-expand-try-functions-list
300302 '(try-expand-dabbrev
@@ -343,6 +345,7 @@
343345 (add-hook 'c-mode-common-hook
344346 (lambda ()
345347 (local-set-key (kbd "C-c f") #'clang-format-buffer)
348+ (local-set-key (kbd "C-c i") #'imenu)
346349 (local-set-key (kbd "C-c g")
347350 (lambda ()
348351 (interactive)
@@ -357,7 +360,7 @@
357360 (push '("!=" . ?≠) prettify-symbols-alist)
358361 (push '("->" . ?→) prettify-symbols-alist)
359362 (prettify-symbols-mode 1)
360- (setq truncate-lines t)
363+ (toggle-truncate-lines 1)
361364 (+skeletons-for-c)
362365 (cwarn-mode 1)
363366 (indent-tabs-mode -1)