summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/general.el13
1 files changed, 10 insertions, 3 deletions
diff --git a/lisp/general.el b/lisp/general.el
index a48cf7c..b6db8b7 100644
--- a/lisp/general.el
+++ b/lisp/general.el
@@ -73,9 +73,8 @@
(setq-default right-fringe-width 20)
;; Initialization screen
-(setq inhibit-splash-screen t)
-(setq initial-scratch-message "* Scratch")
-(setq initial-major-mode 'org-mode)
+(setq fancy-splash-image "~/.emacs.d/images/true.png")
+
;; Highlight todos
(use-package hl-todo
@@ -150,6 +149,14 @@
:box '(:line-width -1
:color "gray90"
:style nil))
+(defun visual-line-range ()
+ """Purpose is to only highlight the visual line even when the real line wraps. (Source: https://stackoverflow.com/questions/31541907/highlight-a-single-line-in-a-larger-word-wrapped-line)"""
+ (save-excursion
+ (cons
+ (progn (beginning-of-visual-line) (point))
+ (progn (end-of-visual-line) (point)))))
+
+(setq hl-line-range-function 'visual-line-range)
;; Git