Emacs: Show fill-column indicator if ruler is shown.

This commit is contained in:
tastytea 2019-12-26 08:44:59 +01:00
parent 67f180d1bd
commit e18deb8049

View File

@ -1,6 +1,6 @@
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-12-23T02:48:05+00:00>
;; Time-stamp: <2019-12-26T07:41:24+00:00>
;;; Commentary:
@ -33,8 +33,12 @@
:config
(defun my/ruler-on ()
"Turn ruler on."
"Turn `ruler-mode' on."
(ruler-mode 1)
;; Show a fill-column indicator vertically across the buffer.
(when (>= emacs-major-version 27)
(display-fill-column-indicator-mode))
)
:custom-face
@ -197,7 +201,8 @@
:config
(delete 'newline-mark whitespace-style) ; Don't paint $ at eol.
(delete 'lines whitespace-style) ; Don't mark whole overly long lines.
(add-to-list 'whitespace-style 'lines-tail) ; Mark end of overly long lines.
(when (< emacs-major-version 27) ; Mark end of overly long lines.
(add-to-list 'whitespace-style 'lines-tail))
;; Workaround to not show dots in popup menus.
(defun my/whitespace-mode-enabled-p ()