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:
tastytea 2019-03-29 19:10:05 +01:00
parent 29ebef34fc
commit 6746b974b9
2 changed files with 47 additions and 8 deletions

53
init.el
View File

@ -1,5 +1,5 @@
;;; 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:
;;; 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.
(use-package hl-todo
:bind
(:map hl-todo-mode-map
("C-c t" . hl-todo-occur))
:hook
(prog-mode . hl-todo-mode))
@ -472,7 +475,10 @@
:foreground "dark gray"
:family "Sans Serif"
:italic t)
(set-face-attribute 'tabbar-unselected-modified nil
(set-face-attribute 'tabbar-modified nil
:inherit 'tabbar-modified
:foreground "brown2"
:italic t
:bold nil)
(add-hook 'projectile-after-switch-project-hook ; Does not work under :hook.
@ -485,15 +491,18 @@
(tabbar-selected (nil
:background "gray11"
:foreground "light gray"
:family "Sans Serif"
:family "Sans Serif"
:bold t))
(tabbar-unselected (nil
:background "gray18"
:foreground "dark gray"
:family "Sans Serif"
:italic t))
(tabbar-unselected-modified (nil
:bold nil))))
(tabbar-modified (nil
:foreground "brown2"
:italic t
:bold nil))
))
;; Visualize whitespace.
(use-package whitespace
@ -536,12 +545,18 @@
(flyspell-mode 0)
(flyspell-mode)
(flyspell-buffer)))
(defun my/flyspell-german ()
"Set dictionary to german."
(ispell-change-dictionary "german"))
:bind
("<f6>" . my/toggle-flyspell)
:hook
;; Spellcheck comments.
(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.
(use-package multiple-cursors
@ -600,7 +615,7 @@
(easy-hugo-postdir "content/posts")
(easy-hugo-default-ext ".adoc")
:bind
("C-c h" . easy-hugo)
("C-x M-h" . easy-hugo)
:mode
;; The mode is not turned on?
("\\`'\\*Easy-hugo\\*\\'" . easy-hugo-mode)))
@ -631,6 +646,30 @@
:hook
(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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package adoc-mode
:mode

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 12460
127.0.0.1:51313 19961
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh