Use bs for C-x C-b, set fill-column to 100 for HTML.

This commit is contained in:
tastytea 2019-05-15 00:05:09 +02:00
parent 61f84918e2
commit 8a59e48d62
2 changed files with 20 additions and 11 deletions

29
init.el
View File

@ -1,5 +1,5 @@
;;; 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:
;; 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 80))
(defun my/set-fill-column-100 ()
"Set fill-column to 100."
(set-fill-column 100))
(defun my/set-fill-column-120 ()
"Set fill-column to 120."
(set-fill-column 120))
@ -129,7 +133,7 @@
:hook
(prog-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.
;; Save cursor position.
@ -178,6 +182,8 @@ With argument, do this that many times."
;; Switch windows.
("M-S-<left>" . previous-multiframe-window)
("M-S-<right>" . next-multiframe-window)
;; Switch between header and implementation.
("C-:" . ff-find-other-file)
))
;;;;;;;;;;;;;;;;;;;; Programming / general ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -761,13 +767,9 @@ With argument, do this that many times."
:hook
(find-file . auto-insert))
;; Use conf-mode for openrc config files.
(use-package conf-mode
:mode
("\\`/etc/conf\\.d/" . conf-mode)
("\\`/etc/portage/package\\.use/" . conf-mode)
("\\`/etc/portage/package\\.accept_keywords/" . conf-mode)
)
(use-package bs
:bind
("C-x C-b" . bs-show))
;;;;;;;;;;;;;;;;;;;; LaTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(if (executable-find "xetex")
@ -808,9 +810,16 @@ With argument, do this that many times."
("\\.tmpl\\'" . web-mode) ; Gitea templates
("\\.php\\'" . web-mode)
:hook
(web-mode . my/set-fill-column-120))
(web-mode . my/set-fill-column-100))
;;;;;;;;;;;;;;;;;;;; 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
:mode
("\\.adoc\\'" . adoc-mode)

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 24270
127.0.0.1:51313 3637
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh