tvl-depot/emacs.d/wpc/variables.el
William Carroll 6393e47c77 Support highlighting fill-column overflows
This was previously semi-supported. There were two problems, however:

1. My fill-column value of 80 got out-of-sync with my white-line-column
   value of 100.
   Solution: globally define wpc/fill-column, set that to 80, and
   consume the new const in my config.

2. Nothing was activating whitespace mode.
   Solution: add whitespace-mode to prog-mode-hook.

This SO answer helped tremendously:
https://stackoverflow.com/questions/18855510/have-emacs-highlight-characters-over-80
2018-08-09 12:02:18 -04:00

26 lines
1 KiB
EmacsLisp

;;; variables.el --- Helpful variables for making my ELisp life more enjoyable -*- lexical-binding: t -*-
;; Authpr: William Carroll <wpcarro@gmail.com>
;;; Commentary:
;; This file contains helpful variables that I use in my ELisp development.
;;; Code:
(defconst wpc/current-project
"~/urbint/grid/"
"Variable holding the directory for my currently active project.")
(defvar wpc/mouse-kbds
'([mouse-1] [down-mouse-1] [drag-mouse-1] [double-mouse-1] [triple-mouse-1]
[mouse-2] [down-mouse-2] [drag-mouse-2] [double-mouse-2] [triple-mouse-2]
[mouse-3] [down-mouse-3] [drag-mouse-3] [double-mouse-3] [triple-mouse-3]
[mouse-4] [down-mouse-4] [drag-mouse-4] [double-mouse-4] [triple-mouse-4]
[mouse-5] [down-mouse-5] [drag-mouse-5] [double-mouse-5] [triple-mouse-5])
"This variable stores all of the mouse-related keybindings that Emacs recognizes.")
(defconst wpc/fill-column
80
"Variable used to set the defaults for wrapping, highlighting, etc.")
(provide 'variables)
;;; variables.el ends here