Edited init.el, added german dictionary.
init.el: Added LaTeX stuff, tweaked tabbar colors, bound C-c t to hl-mode-occur, fixed hugo binding.
This commit is contained in:
parent
29ebef34fc
commit
6746b974b9
51
init.el
51
init.el
|
@ -1,5 +1,5 @@
|
||||||
;;; init.el --- tastytea's Emacs init file.
|
;;; init.el --- tastytea's Emacs init file.
|
||||||
;;; Time-stamp: <2019-03-28 21:42:32 CET>
|
;;; Time-stamp: <2019-03-29 19:09:17 CET>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;;; I am using this file with Emacs 26, but most of it will probably work with
|
;;; I am using this file with Emacs 26, but most of it will probably work with
|
||||||
|
@ -272,6 +272,9 @@
|
||||||
|
|
||||||
;; Highlight TODO, FIXME, NOTE and so on.
|
;; Highlight TODO, FIXME, NOTE and so on.
|
||||||
(use-package hl-todo
|
(use-package hl-todo
|
||||||
|
:bind
|
||||||
|
(:map hl-todo-mode-map
|
||||||
|
("C-c t" . hl-todo-occur))
|
||||||
:hook
|
:hook
|
||||||
(prog-mode . hl-todo-mode))
|
(prog-mode . hl-todo-mode))
|
||||||
|
|
||||||
|
@ -472,7 +475,10 @@
|
||||||
:foreground "dark gray"
|
:foreground "dark gray"
|
||||||
:family "Sans Serif"
|
:family "Sans Serif"
|
||||||
:italic t)
|
:italic t)
|
||||||
(set-face-attribute 'tabbar-unselected-modified nil
|
(set-face-attribute 'tabbar-modified nil
|
||||||
|
:inherit 'tabbar-modified
|
||||||
|
:foreground "brown2"
|
||||||
|
:italic t
|
||||||
:bold nil)
|
:bold nil)
|
||||||
|
|
||||||
(add-hook 'projectile-after-switch-project-hook ; Does not work under :hook.
|
(add-hook 'projectile-after-switch-project-hook ; Does not work under :hook.
|
||||||
|
@ -492,8 +498,11 @@
|
||||||
:foreground "dark gray"
|
:foreground "dark gray"
|
||||||
:family "Sans Serif"
|
:family "Sans Serif"
|
||||||
:italic t))
|
:italic t))
|
||||||
(tabbar-unselected-modified (nil
|
(tabbar-modified (nil
|
||||||
:bold nil))))
|
:foreground "brown2"
|
||||||
|
:italic t
|
||||||
|
:bold nil))
|
||||||
|
))
|
||||||
|
|
||||||
;; Visualize whitespace.
|
;; Visualize whitespace.
|
||||||
(use-package whitespace
|
(use-package whitespace
|
||||||
|
@ -536,12 +545,18 @@
|
||||||
(flyspell-mode 0)
|
(flyspell-mode 0)
|
||||||
(flyspell-mode)
|
(flyspell-mode)
|
||||||
(flyspell-buffer)))
|
(flyspell-buffer)))
|
||||||
|
(defun my/flyspell-german ()
|
||||||
|
"Set dictionary to german."
|
||||||
|
(ispell-change-dictionary "german"))
|
||||||
:bind
|
:bind
|
||||||
("<f6>" . my/toggle-flyspell)
|
("<f6>" . my/toggle-flyspell)
|
||||||
:hook
|
:hook
|
||||||
;; Spellcheck comments.
|
;; Spellcheck comments.
|
||||||
(prog-mode . flyspell-prog-mode)
|
(prog-mode . flyspell-prog-mode)
|
||||||
(flyspell-prog-mode . my/delete-flyspell-keybinding))))
|
(flyspell-prog-mode . my/delete-flyspell-keybinding)
|
||||||
|
;; Spellcheck LaTeX
|
||||||
|
(LaTeX-mode . my/flyspell-german)
|
||||||
|
(LaTeX-mode . flyspell-mode))))
|
||||||
|
|
||||||
;; Multiple cursors.
|
;; Multiple cursors.
|
||||||
(use-package multiple-cursors
|
(use-package multiple-cursors
|
||||||
|
@ -600,7 +615,7 @@
|
||||||
(easy-hugo-postdir "content/posts")
|
(easy-hugo-postdir "content/posts")
|
||||||
(easy-hugo-default-ext ".adoc")
|
(easy-hugo-default-ext ".adoc")
|
||||||
:bind
|
:bind
|
||||||
("C-c h" . easy-hugo)
|
("C-x M-h" . easy-hugo)
|
||||||
:mode
|
:mode
|
||||||
;; The mode is not turned on?
|
;; The mode is not turned on?
|
||||||
("\\`'\\*Easy-hugo\\*\\'" . easy-hugo-mode)))
|
("\\`'\\*Easy-hugo\\*\\'" . easy-hugo-mode)))
|
||||||
|
@ -631,6 +646,30 @@
|
||||||
:hook
|
:hook
|
||||||
(find-file . auto-insert))
|
(find-file . auto-insert))
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;; LaTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
(use-package tex-site
|
||||||
|
:ensure auctex
|
||||||
|
:custom
|
||||||
|
(TeX-parse-self t) ; Enable parse on load.
|
||||||
|
(TeX-auto-save t) ; Enable parse on save
|
||||||
|
(TeX-PDF-mode t) ; PDF mode (rather than DVI-mode)
|
||||||
|
(TeX-engine 'xetex)
|
||||||
|
:mode
|
||||||
|
("\\.tex\\'" . LaTeX-mode))
|
||||||
|
|
||||||
|
;; Auto complete for LaTeX.
|
||||||
|
(use-package company-auctex
|
||||||
|
:hook
|
||||||
|
(LaTeX-mode . company-auctex-init))
|
||||||
|
|
||||||
|
;; (use-package pdf-tools
|
||||||
|
;; :custom
|
||||||
|
;; (mouse-wheel-follow-mouse t)
|
||||||
|
;; :mode
|
||||||
|
;; ("\\.pdf\\'" . pdf-tools-install)
|
||||||
|
;; :bind
|
||||||
|
;; ("C-c C-g" . pdf-sync-forward-search))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;; File formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;; File formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
(use-package adoc-mode
|
(use-package adoc-mode
|
||||||
:mode
|
:mode
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
127.0.0.1:51313 12460
|
127.0.0.1:51313 19961
|
||||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user