Only load easy-hugo on ventiloplattform, hook flyspell to prog-mode.
This commit is contained in:
parent
7934e6eb42
commit
359cc46697
31
init.el
31
init.el
|
@ -1,5 +1,5 @@
|
|||
;;; 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:
|
||||
;;; I am using this file with Emacs 26, but most of it will probably work with
|
||||
|
@ -504,8 +504,7 @@
|
|||
("<f6>" . my/toggle-flyspell)
|
||||
:hook
|
||||
;; Spellcheck comments.
|
||||
(c++-mode . flyspell-prog-mode)
|
||||
(c-mode . flyspell-prog-mode)))
|
||||
(prog-mode . flyspell-prog-mode)))
|
||||
|
||||
;; Multiple cursors.
|
||||
(use-package multiple-cursors
|
||||
|
@ -553,18 +552,20 @@
|
|||
:bind
|
||||
("C-;" . iedit-mode))
|
||||
|
||||
(use-package easy-hugo
|
||||
:custom
|
||||
(easy-hugo-basedir "~/Projekte/www/blog.tastytea.de/")
|
||||
(easy-hugo-url "https://blog.tastytea.de")
|
||||
(easy-hugo-previewtime "300")
|
||||
(easy-hugo-postdir "content/posts")
|
||||
(easy-hugo-default-ext ".adoc")
|
||||
:bind
|
||||
("C-c h" . easy-hugo)
|
||||
:mode
|
||||
;; The mode is not turned on?
|
||||
("\\`'\\*Easy-hugo\\*\\'" . easy-hugo-mode))
|
||||
;; Mode for writing blog posts with hugo.
|
||||
(if (string= (system-name) "ventiloplattform")
|
||||
(use-package easy-hugo
|
||||
:custom
|
||||
(easy-hugo-basedir "~/Projekte/www/blog.tastytea.de/")
|
||||
(easy-hugo-url "https://blog.tastytea.de")
|
||||
(easy-hugo-previewtime "300")
|
||||
(easy-hugo-postdir "content/posts")
|
||||
(easy-hugo-default-ext ".adoc")
|
||||
:bind
|
||||
("C-c h" . easy-hugo)
|
||||
:mode
|
||||
;; The mode is not turned on?
|
||||
("\\`'\\*Easy-hugo\\*\\'" . easy-hugo-mode)))
|
||||
|
||||
;; Automatically insert text in new files.
|
||||
(use-package autoinsert
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
127.0.0.1:51313 11583
|
||||
127.0.0.1:51313 14312
|
||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user