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.
|
;;; 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,18 +552,20 @@
|
||||||
:bind
|
:bind
|
||||||
("C-;" . iedit-mode))
|
("C-;" . iedit-mode))
|
||||||
|
|
||||||
(use-package easy-hugo
|
;; Mode for writing blog posts with hugo.
|
||||||
:custom
|
(if (string= (system-name) "ventiloplattform")
|
||||||
(easy-hugo-basedir "~/Projekte/www/blog.tastytea.de/")
|
(use-package easy-hugo
|
||||||
(easy-hugo-url "https://blog.tastytea.de")
|
:custom
|
||||||
(easy-hugo-previewtime "300")
|
(easy-hugo-basedir "~/Projekte/www/blog.tastytea.de/")
|
||||||
(easy-hugo-postdir "content/posts")
|
(easy-hugo-url "https://blog.tastytea.de")
|
||||||
(easy-hugo-default-ext ".adoc")
|
(easy-hugo-previewtime "300")
|
||||||
:bind
|
(easy-hugo-postdir "content/posts")
|
||||||
("C-c h" . easy-hugo)
|
(easy-hugo-default-ext ".adoc")
|
||||||
:mode
|
:bind
|
||||||
;; The mode is not turned on?
|
("C-c h" . easy-hugo)
|
||||||
("\\`'\\*Easy-hugo\\*\\'" . easy-hugo-mode))
|
:mode
|
||||||
|
;; The mode is not turned on?
|
||||||
|
("\\`'\\*Easy-hugo\\*\\'" . easy-hugo-mode)))
|
||||||
|
|
||||||
;; Automatically insert text in new files.
|
;; Automatically insert text in new files.
|
||||||
(use-package autoinsert
|
(use-package autoinsert
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
127.0.0.1:51313 11583
|
127.0.0.1:51313 14312
|
||||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user