Persisting scratch buffer

I often restart Emacs after upgrading ELPA packages or messing up Emacs ordinary behavior, for example, (setq mode-line-format nil). I use Emacs’s built-in package desktop.el to restore the state of Emacs, including buffer/window/frame state, and I also use another built-in package savehist.el to restore various Minibuffer histories. I can’t live without them even they slow down my Emacs initialization time a lot.

Read More

Opening iTerm From an Emacs buffer

Three apps are always running when I’m coding, they are Emacs, Terminal (in my case iTerm) and Web browser. Though there are many ways to run shell command from Emacs, for example, M-!, term and eshell, a robust Terminal session is still necessary to me.

Read More