All Projects → hlissner → Emacs Solaire Mode

hlissner / Emacs Solaire Mode

Licence: mit
If only certain buffers could be so grossly incandescent.

Projects that are alternatives of or similar to Emacs Solaire Mode

Evil Multiedit
Multiple cursors for evil-mode, based on iedit
Stars: ✭ 200 (+55.04%)
Mutual labels:  emacs, melpa, emacs-packages
Perfect Margin
[emacs] auto center emacs windows, work with minimap and/or linum-mode
Stars: ✭ 26 (-79.84%)
Mutual labels:  emacs, emacs-packages
Smart Mode Line
A powerful and beautiful mode-line for Emacs.
Stars: ✭ 809 (+527.13%)
Mutual labels:  emacs, emacs-packages
Emacs Which Key
Emacs package that displays available keybindings in popup
Stars: ✭ 1,136 (+780.62%)
Mutual labels:  emacs, emacs-packages
God Mode
Minor mode for God-like command entering
Stars: ✭ 570 (+341.86%)
Mutual labels:  emacs, emacs-packages
Meghanada Emacs
A Better Java Development Environment for Emacs
Stars: ✭ 582 (+351.16%)
Mutual labels:  emacs, melpa
Emacs.g
The Emacs Collective
Stars: ✭ 51 (-60.47%)
Mutual labels:  emacs, emacs-packages
Use Package
A use-package declaration for simplifying your .emacs
Stars: ✭ 3,748 (+2805.43%)
Mutual labels:  emacs, melpa
Exwm Edit
Edit mode for EXWM
Stars: ✭ 92 (-28.68%)
Mutual labels:  emacs, melpa
Lsp Dart
lsp-mode ❤️ dart
Stars: ✭ 94 (-27.13%)
Mutual labels:  emacs, melpa
Auto Complete
Emacs auto-complete package
Stars: ✭ 1,622 (+1157.36%)
Mutual labels:  emacs, melpa
Quelpa
Build and install your Emacs Lisp packages on-the-fly directly from source
Stars: ✭ 455 (+252.71%)
Mutual labels:  emacs, melpa
Frontmacs
Package-based, web-centric, customizable, awesome-by-default, acceptance-tested Emacs distribution
Stars: ✭ 445 (+244.96%)
Mutual labels:  emacs, emacs-packages
Cmake Ide
Use Emacs as a C/C++ IDE
Stars: ✭ 661 (+412.4%)
Mutual labels:  emacs, melpa
Nord Emacs
An arctic, north-bluish clean and elegant Emacs theme.
Stars: ✭ 379 (+193.8%)
Mutual labels:  emacs, melpa
Emacs Datetime
Stars: ✭ 8 (-93.8%)
Mutual labels:  emacs, melpa
Web Mode
web template editing mode for emacs
Stars: ✭ 1,470 (+1039.53%)
Mutual labels:  emacs, melpa
emrc
EMacsRu metapackages collection
Stars: ✭ 12 (-90.7%)
Mutual labels:  melpa, emacs-packages
Rg.el
Emacs search tool based on ripgrep
Stars: ✭ 277 (+114.73%)
Mutual labels:  emacs, melpa
Dumb Jump
an Emacs "jump to definition" package for 50+ languages
Stars: ✭ 1,256 (+873.64%)
Mutual labels:  emacs, melpa

Release tag MIT MELPA

Solaire mode

If only certain buffers could be so grossly incandescent.

solaire-mode is an aesthetic plugin that helps visually distinguish file-visiting windows from other types of windows (like popups or sidebars) by giving them a slightly different -- often brighter -- background.

Praise the sun.

Note:

  • Uses face-remapping-alist, which other plugins may overwrite.
  • Tested mainly on Emacs 25.1+
  • This was once a part of doom-themes as doom-buffer-mode
  • Try jumping.

Screenshot

solaire-mode at work

Install

Solaire-mode is available on MELPA: M-x package-install RET solaire-mode

Doom Emacs

Doom installs this package as part of the :ui doom module. No additional configuration is needed.

Configuration

solaire-mode (or solaire-global-mode) must be activated before your theme is loaded:

(solaire-global-mode +1)

(load-theme 'my-theme t)

Here are some example use-package configs for solaire-mode:

;; A simple config:
(use-package solaire-mode
  :hook (after-init . solaire-global-mode))


;; A more complex, more lazy-loaded config
(use-package solaire-mode
  ;; Ensure solaire-mode is running in all solaire-mode buffers
  :hook (change-major-mode . turn-on-solaire-mode)
  ;; ...if you use auto-revert-mode, this prevents solaire-mode from turning
  ;; itself off every time Emacs reverts the file
  :hook (after-revert . turn-on-solaire-mode)
  ;; To enable solaire-mode unconditionally for certain modes:
  :hook (ediff-prepare-buffer . solaire-mode)
  ;; Highlight the minibuffer when it is activated:
  :hook (minibuffer-setup . solaire-mode-in-minibuffer)
  :config
  ;; The bright and dark background colors are automatically swapped the first 
  ;; time solaire-mode is activated. Namely, the backgrounds of the `default` and
  ;; `solaire-default-face` faces are swapped. This is done because the colors 
  ;; are usually the wrong way around. If you don't want this, you can disable it:
  (setq solaire-mode-auto-swap-bg nil)

  (solaire-global-mode +1))

Configuration

  • By default, solaire-mode's effects will be invisible. Its faces must be defined:

    • solaire-default-face
    • solaire-minibuffer-face
    • solaire-line-number-face
    • solaire-hl-line-face
    • solaire-org-hide-face
    • solaire-mode-line-face
    • solaire-mode-line-inactive-face
  • What faces get remapped is controlled by solaire-mode-remap-faces and solaire-mode-remap-modeline.

    By default, these faces are affected:

    • default
    • hl-line
    • linum
    • org-hide
    • mode-line
    • mode-line-inactive
  • The function in solaire-mode-real-buffer-fn determines if a buffer should be brightened or not.

  • solaire-mode-remap-fringe controls whether the fringe's background is changed (and maintained) when solaire-mode is active. Setting it to nil will disable this behavior. To change what background it is changed to, modify the solaire-fringe-face face's :background.

Themes that support solaire-mode out of the box

The only (known) themes to support solaire-mode are:

Jolly cooperation with other plugins

  • Latex previews in org-mode may have a mismatched background color. You can fix this by setting the :background property in org-format-latex-options to 'default:

    (with-eval-after-load 'org
      (plist-put org-format-latex-options :background 'default))
    
  • By default, solaire-mode remaps the mode-line faces. This interferes with certain mode-line packages like telephone-line or powerline. You can undo this with:

    (setq solaire-mode-remap-modeline nil)
    
  • When persp-mode loads a perspective from file, it doesn't restore solaire-mode. The function solaire-mode-restore-persp-mode-buffers is available for this:

    (advice-add #'persp-load-state-from-file :after #'solaire-mode-restore-persp-mode-buffers)
    
  • Don't trust Patches!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].