re-work line highlights to be /off/ for org-agenda-mode and allow for future tuning based on major and/or minor modes
This commit is contained in:
parent
95b0f8ad00
commit
d1b35527de
|
@ -52,10 +52,20 @@
|
|||
(setq eshell-prompt-function (lambda () (concat (car (last (split-string (eshell/pwd) "/"))) " $ ")))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; misc config
|
||||
; dont wrap lines
|
||||
(set-default 'truncate-lines t)
|
||||
; highlight current line
|
||||
(global-hl-line-mode +1)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; highlight current line global -- Do NOT use
|
||||
;(global-hl-line-mode +1) ; this overrides std hl-line-mode buffer config
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; hl-line-mode based on major mode hook (on by default, off for listed major modes)
|
||||
; to get major mode: (message "%s" major-mode)
|
||||
; to get minor modes: (describe-mode)
|
||||
(add-hook 'minibuffer-setup-hook '(lambda () (hl-line-mode 0)))
|
||||
(add-hook 'after-change-major-mode-hook
|
||||
'(lambda () (hl-line-mode (if (member major-mode '(org-agenda-mode)) 0 1))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; fix opening urls inside termux
|
||||
|
|
Reference in a new issue