Edward
Edward

Reputation: 73

emacs color-theme by buffer

I'm in love with emacs. I don't believe there is anything one can't do with enough effort!

I have just fine working scripts/extensions installed that could be relevant to get my point:

emacs-version: "GNU Emacs 23.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-03-25 on roseapple, modified by Debian"

Whats already working fine When I'm starting a journal-entry trough my defined shortcut, what happens is the following:

What I want it to do additionally:

My .emacs with the code snippet I believe should be relevant.

I have no idea how to tackle this task. Where does one begin editing? Are even all tools needed for this listed above?

Upvotes: 2

Views: 1030

Answers (1)

Andreas Röhler
Andreas Röhler

Reputation: 4804

Seen from scratch: you need a list with color-themes

(setq my-themes (list "color-theme-retro-orange" "second-theme" "third...))

than you need a pointer, storing position used last. See Emacs Lisp Intro chapter of kill-ring-save

When finished, bind that function at a suitable place, where-from your buffer is opened, resp. load it with the stuff mentioned by OP.

Or create a minor-mode, which will all new buffers provide with this.

Upvotes: 1

Related Questions