Use bs for C-x C-b, set fill-column to 100 for HTML.
This commit is contained in:
parent
61f84918e2
commit
8a59e48d62
29
init.el
29
init.el
|
@ -1,5 +1,5 @@
|
||||||
;;; init.el --- tastytea's Emacs init file.
|
;;; init.el --- tastytea's Emacs init file.
|
||||||
;; Time-stamp: <2019-05-13T21:16:16+00:00>
|
;; Time-stamp: <2019-05-14T22:00:21+00:00>
|
||||||
|
|
||||||
;;; 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
|
||||||
|
@ -105,6 +105,10 @@
|
||||||
"Set fill-column to 80."
|
"Set fill-column to 80."
|
||||||
(set-fill-column 80))
|
(set-fill-column 80))
|
||||||
|
|
||||||
|
(defun my/set-fill-column-100 ()
|
||||||
|
"Set fill-column to 100."
|
||||||
|
(set-fill-column 100))
|
||||||
|
|
||||||
(defun my/set-fill-column-120 ()
|
(defun my/set-fill-column-120 ()
|
||||||
"Set fill-column to 120."
|
"Set fill-column to 120."
|
||||||
(set-fill-column 120))
|
(set-fill-column 120))
|
||||||
|
@ -129,7 +133,7 @@
|
||||||
:hook
|
:hook
|
||||||
(prog-mode . my/set-fill-column-80)
|
(prog-mode . my/set-fill-column-80)
|
||||||
(conf-mode . my/set-fill-column-80)
|
(conf-mode . my/set-fill-column-80)
|
||||||
(html-mode . my/set-fill-column-120)
|
(html-mode . my/set-fill-column-100)
|
||||||
(text-mode . auto-fill-mode)) ; Enable word-wrapping at fill-column.
|
(text-mode . auto-fill-mode)) ; Enable word-wrapping at fill-column.
|
||||||
|
|
||||||
;; Save cursor position.
|
;; Save cursor position.
|
||||||
|
@ -178,6 +182,8 @@ With argument, do this that many times."
|
||||||
;; Switch windows.
|
;; Switch windows.
|
||||||
("M-S-<left>" . previous-multiframe-window)
|
("M-S-<left>" . previous-multiframe-window)
|
||||||
("M-S-<right>" . next-multiframe-window)
|
("M-S-<right>" . next-multiframe-window)
|
||||||
|
;; Switch between header and implementation.
|
||||||
|
("C-:" . ff-find-other-file)
|
||||||
))
|
))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;; Programming / general ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;; Programming / general ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
@ -761,13 +767,9 @@ With argument, do this that many times."
|
||||||
:hook
|
:hook
|
||||||
(find-file . auto-insert))
|
(find-file . auto-insert))
|
||||||
|
|
||||||
;; Use conf-mode for openrc config files.
|
(use-package bs
|
||||||
(use-package conf-mode
|
:bind
|
||||||
:mode
|
("C-x C-b" . bs-show))
|
||||||
("\\`/etc/conf\\.d/" . conf-mode)
|
|
||||||
("\\`/etc/portage/package\\.use/" . conf-mode)
|
|
||||||
("\\`/etc/portage/package\\.accept_keywords/" . conf-mode)
|
|
||||||
)
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;; LaTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;; LaTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
(if (executable-find "xetex")
|
(if (executable-find "xetex")
|
||||||
|
@ -808,9 +810,16 @@ With argument, do this that many times."
|
||||||
("\\.tmpl\\'" . web-mode) ; Gitea templates
|
("\\.tmpl\\'" . web-mode) ; Gitea templates
|
||||||
("\\.php\\'" . web-mode)
|
("\\.php\\'" . web-mode)
|
||||||
:hook
|
:hook
|
||||||
(web-mode . my/set-fill-column-120))
|
(web-mode . my/set-fill-column-100))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;; Other file formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;; Other file formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
(use-package conf-mode
|
||||||
|
:mode
|
||||||
|
("\\`/etc/conf\\.d/" . conf-mode) ; Use conf-mode for openrc config files.
|
||||||
|
("\\`/etc/portage/package\\.use/" . conf-mode)
|
||||||
|
("\\`/etc/portage/package\\.accept_keywords/" . conf-mode)
|
||||||
|
)
|
||||||
|
|
||||||
(use-package adoc-mode
|
(use-package adoc-mode
|
||||||
:mode
|
:mode
|
||||||
("\\.adoc\\'" . adoc-mode)
|
("\\.adoc\\'" . adoc-mode)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
127.0.0.1:51313 24270
|
127.0.0.1:51313 3637
|
||||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user