Skip to content

Commit

Permalink
Prevent fringe truncation when scroll bars disabled #emacs26
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Oct 4, 2017
1 parent 047c136 commit ea60f98
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion elisp/smyx
Submodule smyx updated 1 files
+2 −0 smyx-theme.el
21 changes: 18 additions & 3 deletions setup-files/setup-visual.el
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
;; Time-stamp: <2017-07-06 18:30:53 kmodi>
;; Time-stamp: <2017-10-04 10:01:31 kmodi>

;; Set up the looks of emacs

;; Contents:
;;
;; Variables
;; Show Paren
;; Bars
;; Bars, Dividers, and Window Elements
;; Menu bar
;; Tool bar
;; Scroll bar
;; Window Dividers
;; Themes
;; Frame Title
;; Fonts
Expand Down Expand Up @@ -61,7 +62,7 @@ This variable is to be updated when changing themes.")
;; the closing parentheses in the minibuffer.
(show-paren-mode 1)

;;; Bars
;;; Bars, Dividers, and Window Elements

;;;; Menu bar
;; Do not show the menu bar with File|Edit|Options|...
Expand Down Expand Up @@ -109,6 +110,20 @@ Also restore the original frame size when disabling the menu bar."
(when (fboundp 'scroll-bar-mode)
(scroll-bar-mode -1)) ;Disable the scroll bars

;;;; Window Dividers
(use-package frame
:defer t
:config
(progn
(setq window-divider-default-places 'right-only) ;Default 'right-only
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27830#20
;; Workaround on emacs 26+ to prevent fringe truncation. You need to use
;; either scroll bars or window dividers to prevent that.
;; I dislike the default face of `window-divider', so I customize that in my
;; `smyx-theme`.
(setq window-divider-default-right-width 1) ;Default 6
(window-divider-mode 1)))

;;; Themes
;; THEME-NAME DARK FCI-RULE-COLOR
(defconst my/themes '((smyx 'dark "gray40")
Expand Down

0 comments on commit ea60f98

Please sign in to comment.