Hacker News new | ask | show | jobs
by cannam 2071 days ago
I filled this in for fun - it's short enough and impersonal enough that I didn't feel I cared what happens to the data.

As an Emacs user for some decades who never really uses any other editor, I found a few questions I didn't understand very well or recognise the answers for. I suppose other users must be more ecosystem-minded than I am.

I was intrigued by the (mandatory) question about which theme you use. Does Emacs even "have" named themes?

7 comments

Yes, many! I use deeper-blue. solarized-light and -dark are also good. Themes don’t seem to work well with terminal emacs though, but I haven’t dug into the issue much since I’m mostly in the GUI.
Well, I wrote my own theme so I could have a consistent experience between GUI and terminal. It meant customizing my terminal colours so they were non-awful (the minimal 16 are super-garish, I have mine tuned for less harsh contrast but also more colour differentiation considering I'm red/green colourblind).

I then used the same customized terminal colours in my GUI theme.

It works like this:

    (if (display-graphic-p)
        (setq color-yellow "#f57900"
              color-bright-yellow "#fce94f"
              color-red "#ff6464"
              color-bright-red "#ef2929"
              color-bright-green "#73d216"
              color-green "#4e9a06"
              color-blue "#729fcf"
              color-bright-blue "#204a87"
              color-white "#babdb6"
              color-bright-white "#eeeeec"
              color-magenta "#ad7fa8"
              color-bright-magenta "#1d324b"
              color-black "#1a2022"
              color-bright-black "#2e3436"
              color-bright-cyan "#555753"
              color-cyan "#888a85")
      (setq color-black "black"
            color-white "white"
            color-red "red"
            color-green "green"
            color-blue "blue"
            color-yellow "yellow"
            color-cyan "cyan"
            color-magenta "magenta"
            color-bright-black "brightblack"
            color-bright-white "brightwhite"
            color-bright-red "brightred"
            color-bright-green "brightgreen"
            color-bright-blue "brightblue"
            color-bright-yellow "brightyellow"
            color-bright-cyan "brightcyan"
            color-bright-magenta "brightmagenta"))
Then, later on, I use these colours for setting the faces for the cursor, region, keywords, comments, tweaking various different major modes, etc.

With a true-colour capable terminal there's no technical reason to need to take these steps, but this approach works for me in rxvt-unicode and mintty, the two terminals I use on Linux and Windows respectively, and aren't mucked up by any level of tmux or screen nesting.

Yup. It used to have color-themes, which I believe was a package, but maybe five years ago they switched to supporting themes as first class citizens.

I use solarized dark

Oh yes, I see there's a theme entry down in the Customize Emacs submenu at the bottom of the Options menu. Logical though that may be, I had no idea.

It's not as if I even have a complicated custom theme in my .emacs - I have a couple of lines, but mainly I just don't change the colours from their defaults any more. I care a great deal about what my editor looks like, but it turns out that the default colours - black text, white background, pleasantly dark font-lock colours - are perfect for me already. (I waste my time on fonts instead)

I wanted a "none" or "default" option there. Also the one about communities (reddit etc) was mandatory and no option applied.
welcome to the wide wide world of shared themes

https://emacsthemes.com/

https://github.com/hlissner/emacs-doom-themes/tree/screensho...

and probably many others

run load-theme to switch by name, to any you've got installed.

I use doom-themes laserwave. It's in melpa. M-x customize-themes and look for themes on melpa, you can make it look like the new hotness. Also, install doom-modeline from melpa, and M-x all-the-icons-install-fonts for a really informative and beautiful mode line.
The "what did you use before Emacs" question stumped me: only one of those even existed when I started using Emacs. :)
It does. I like leuven.