top | item 2052717

GNU Emacs Theme Generator (beta)

62 points| surki | 15 years ago |elpa.gnu.org | reply

22 comments

order
[+] kleiba|15 years ago|reply
Interesting timing: just two days ago, I spent a good part of my afternoon making "emacs -nw" running inside GNU screen to look more or less exactly the way my standard windowed Emacs looks. That included mostly fiddling with terminal settings and finding colors that are supported by the terminal and resemble my original choices (and some other tweaking here and there).

Now clickong on my Emacs icon on the desktop will open a new gnome-terminal that runs an Emacs inside screen -- it looks pretty much the same as it did before, but I can access and take over my current session remotely from home. As a matter of fact, the shortcut will actually first check if there's a detached screen session that runs emacs and ask me in a small dialog window if I want to re-attach to that session or start a new window.

Makes me happy.

Sorry if that post is of no interest at all to anyone else on HN but me...

[+] surki|15 years ago|reply
I use a similar setup with urxvt and stumpwm. In stumpwm I have

    ;; Launch emacs
    (defcommand emacs () ()
       (run-or-raise
        "urxvt -title emacs -e screen -U -dRR -S emacs -c ~/.screenrc.emacs"
      '(:title "emacs" :instance "urxvt" :class "URxvt")))
which will launch emacs (or raise it if it was already launched).

Some of the thing you might want to consider when doing "emacs -nw"

  - Make sure your TERM is exported appropriatly.
    Otherwise you may end up with less colors (M-x list-colors-display).
    Screen fiddles with TERM and emacs may end up supporting less colors.

  - Copy/Paste between regular X apps and the emacs will not work.
    You would need to use something like "xsel". See here [1]

  - Some of the keys may not work as expected. This will be 
    apparent especially when using orgmode. You may want to 
    remap them appropriately
And also I suggest you use Emacs + Wanderlust setup for email (and put it in a screen session as well).

[1] http://hugoheden.wordpress.com/2009/03/08/copypaste-with-ema...

[+] reedlaw|15 years ago|reply
That was interesting to me because today I also spent some time tweaking Emacs to make it work more like Textmate.
[+] hexis|15 years ago|reply
I don't see any colors other than black and white in the theme on Chrome 10 on Snow Leopard, but I do see bold, underline, italics. I see the colors on Firefox 4 beta on Snow Leopard.
[+] sielskr|15 years ago|reply
I would rather have an Emacs that offers fewer choices but looks good out of the box.

Example: the software supplied by Apple with a Mac does not have any themes except for the choice between Blue (colorful) and Graphite (subdued) in the Appearance system preference pane.

OTOH, I regularly have to wait for the software supplied by Apple and I almost never wait for Emacs.

[+] jamesbritt|15 years ago|reply
"Example: the software supplied by Apple with a Mac does not have any themes except for the choice between Blue (colorful) and Graphite (subdued) in the Appearance system preference pane."

Both of which I find strikingly unattractive. Overall, I find the OSX UI annoying to use, and the relatively lack of choices in things doesn't help.

I like the idea of a useful out-of-the-box set of defaults, but that should prevent offering users options to tweak to their hearts' content.

[+] jpr|15 years ago|reply
By waiting, do you mean wait for the release, or wait because the software is busy doing something?
[+] nixme|15 years ago|reply
I recommend using senny's theme-roller.el [1] to automatically apply your color theme to any new faces. Brings some sanity to the number of colors that need to be defined.

[1] https://github.com/senny/theme-roller.el

[+] t0mas|15 years ago|reply
There's a similar tool at http://color-theme-select.heroku.com it's also in beta, allowing to generate custom themes and select from a large collection of them. I've contacted the author to see if he's fixing the "generate emacs-lisp" feature.

Would be nice people could use that tool to create themes for emacs 24, and send them to emacs-devel.

[+] prewett|15 years ago|reply
Is there any cc-mode generator like this? I spent a couple days trying to tweak mine a while back, but try as I might, my comments still want to align all the way left.
[+] jcw|15 years ago|reply
I have a half-written xterm color scheme generator lying around. Has this also been already made, or is it worth finishing?
[+] moondowner|15 years ago|reply
I would like to see something like this for NetBeans.
[+] reader5000|15 years ago|reply
Use -nw and get your terminal's theme for free!
[+] pyre|15 years ago|reply
What about a 256-color theme for 256-color terminals (or 88-color for 88-color terminals for that matter).
[+] jrockway|15 years ago|reply
Not really. Seeing as how I have a terminal that's newer than 1985, Emacs displays the same colors with -nw as it does with the windowed version.