Next: DIY Add padding to the mode line, Previous: DIY Per-theme customization settings, Up: Advanced customization [Index]
By default, the background of the region
face extends from the
end of the line to the edge of the window. To limit it to the end of
the line, we need to override the face’s ‘:extend’ attribute. Adding
this to the Emacs configuration file will suffice:
;; Do not extend `region' background past the end of the line. (custom-set-faces '(region ((t :extend nil))))