Add :ui fci module for fill-column-indicator
This commit is contained in:
parent
56b4cba964
commit
e918040e70
3 changed files with 34 additions and 0 deletions
14
modules/ui/fci/config.el
Normal file
14
modules/ui/fci/config.el
Normal file
|
@ -0,0 +1,14 @@
|
|||
;;; ui/fci/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! fill-column-indicator
|
||||
:hook ((text-mode prog-mode conf-mode) . turn-on-fci-mode)
|
||||
:config
|
||||
(defun +fci|set-color ()
|
||||
(setq fci-rule-color (face-foreground 'line-number)))
|
||||
(add-hook 'doom-load-theme-hook #'+fci|set-color)
|
||||
(+fci|set-color)
|
||||
|
||||
(when (featurep! :completion company)
|
||||
(add-hook 'company-completion-started-hook #'+fci|disable-when-company-activates)
|
||||
(add-hook! '(company-completion-finished-hook company-completion-cancelled-hook)
|
||||
#'+fci|enable-when-company-deactivates)))
|
Loading…
Add table
Add a link
Reference in a new issue