![]() That’s where Prot’s LIN package comes into play: it helps distinguish between highlighting the line in text editing modes and highlighting the line in selection interfaces, so you can use different colors. But it’s also used in selection interfaces to highlight the currently selected line: email modes like message-mode, notmuch, mu4e, and feed reader elfeed use this to show that the actions you can perform pertains to the currently focused or highlighted line. That’s kind of useful to find your insertion point more quickly. Recently, this came in handy when Protesilaos Stavrou published his LIN package source code – it’s basically an extension of the built-in hl-mode, read: highlight-line-mode. These color names can be used for Emacs “faces”, i.e. The Apple’s Human Interface Guidelines have a list of named system colors for macOS. Use macOS System Selection Colors in LIN for Emacs Line-Selection UIs.there is lots of information on Google about how to install Emacs using the latter, including some threads in this forum. If you want to build Emacs yourself (with some help), then most people seem to gravitate towards homebrew. So I’m still using the system default selection highlight colors and want these everywhere. is a reliable distribution and has been around for several years, and there are also bleeding edge builds available from that maintainer. No wonder, because I really like the OS X-era UI. In hindsight, it looks like my quest to tweak how Emacs looks and feels is to make it more Mac-like. Prioritize hl-line Highlight Over Neotree Faces.( add-hook 'modus-themes-after-load-theme-hook #' ct/theme-mac-os-hl-line ) Here’s how I hook into dark/light mode changes to make sure the color is replaced: Update : This approach has been improved and in part superseded by the introduction of LIN so I can apply these colors to selection UIs but not to regular text documents. (At least from eyeballing it.) Some random newsletter emails with the new colors This could, in theory, also adapt to dark vs light mode, but on macOS, the color is actually the same for both modes. Native GUI Emacs on macOS has named colors like the NSColors from AppKit, so I can just use selectedContentBackgroundColor and alternateSelectedControlTextColor. That’s what was missing from my life, so I overwrite the colors. In Finder, when you select something, you get the classic blue bakcground with white foreground color. The light theme has black text on white background, and that is pretty much what you see in macOS Finder, too, when you browse directories. ![]() I use the very excellent dark and light in Emacs. This highlight is way too subtle for my taste. That’s not intended to highlight the current line when you edit text it’s used for things like feed readers and email, where you operate on items that are represented on lines. Often, building Emacs from CVS sources is the best way to get a leading-edge version. In some modes in Emacs, the hl-line (‘hl’ for ‘highlight’) is used. In this chapter, we describe installing Emacs on Unix, Mac OS X. Use macOS Native Highlight Colors for Emacs hl-line
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |