Only load easy-hugo on ventiloplattform, hook flyspell to prog-mode.

This commit is contained in:
tastytea 2019-03-22 23:44:26 +01:00
parent 7934e6eb42
commit 359cc46697
2 changed files with 17 additions and 16 deletions

11
init.el
View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file. ;;; init.el --- tastytea's Emacs init file.
;;; Time-stamp: <2019-03-22 23:23:38 CET> ;;; Time-stamp: <2019-03-22 23:44:16 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
@ -504,8 +504,7 @@
("<f6>" . my/toggle-flyspell) ("<f6>" . my/toggle-flyspell)
:hook :hook
;; Spellcheck comments. ;; Spellcheck comments.
(c++-mode . flyspell-prog-mode) (prog-mode . flyspell-prog-mode)))
(c-mode . flyspell-prog-mode)))
;; Multiple cursors. ;; Multiple cursors.
(use-package multiple-cursors (use-package multiple-cursors
@ -553,7 +552,9 @@
:bind :bind
("C-;" . iedit-mode)) ("C-;" . iedit-mode))
(use-package easy-hugo ;; Mode for writing blog posts with hugo.
(if (string= (system-name) "ventiloplattform")
(use-package easy-hugo
:custom :custom
(easy-hugo-basedir "~/Projekte/www/blog.tastytea.de/") (easy-hugo-basedir "~/Projekte/www/blog.tastytea.de/")
(easy-hugo-url "https://blog.tastytea.de") (easy-hugo-url "https://blog.tastytea.de")
@ -564,7 +565,7 @@
("C-c h" . easy-hugo) ("C-c 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)))
;; Automatically insert text in new files. ;; Automatically insert text in new files.
(use-package autoinsert (use-package autoinsert

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 11583 127.0.0.1:51313 14312
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh