Installing zenburn theme on Aquamacs

I followed the steps in https://github.com/bbatsov/zenburn-emacs to install zenburn theme using MELPA. But I had difficulty making it stick the next time it loads. These are the steps that works with me:

  1. Run Aquamacs
  2. Type: M-x package-install zenburn-theme
  3. I also added (load-theme ‘zenburn t) to “~/Library/Preferences/Aquamacs Emacs/Preferences.el”

But when I close and run Aquamacs again it is not exactly zenburn as the lower bar text are too dark. So I need to load the theme manually:

M-x load-theme zenburn

To make it stick, I follow the steps in: https://www.emacswiki.org/emacs/AquamacsFAQ#toc21

  1. With zenburn theme loaded, I go to: Menu -> Options → Appearance → Auto Faces → Use Current Face as Default
  2. And I do the next step: Menu → Options → Appearance → Adopt Face and Frame Parameters as Default
  3. Answer “Yes” to the dialog.
  4. Exit Aquamacs and “Y” to save the settings.
Advertisements

Disable emacs splash screen when start up

add

(setq inhibit-splash-screen t)
to your .emacs file.

set emacs window size

in emacs, the window is called frame, to set the size everytime it starts up, edit the .emacs file in your home directory, and add

(set-frame-size (selected-frame) 60 35);

where 60 is number of columns, and 35 is the number of rows.

Enable Octave mode in Emacs

Emacs Octave Support is already packaged in Emacs 22 and 23.

To begin using Octave mode for all `.m’ files you visit, add the following lines to a file loaded by Emacs at startup time, typically your `~/.emacs’ file:

(autoload 'octave-mode "octave-mod" nil t)
(setq auto-mode-alist
(cons '("\\.m$" . octave-mode) auto-mode-alist))

Finally, to turn on the abbrevs, auto-fill and font-lock features automatically, also add the following lines to one of the Emacs startup files:

(add-hook 'octave-mode-hook
(lambda ()
(abbrev-mode 1)
(auto-fill-mode 1)
(if (eq window-system 'x)
(font-lock-mode 1))))

Writing Latex in Emacs made easy

I found this package to make writing Latex docs in Emacs pretty easy: AUCTeX. To install type
sudo apt-get install auctex

This is the AUCTeX reference card for using it in emacs.

Install Pretty Emacs!

This improves the font in Emacs. Follow the instruction in this <a href=”http://peadrop.com/blog/2007/01/06/pretty-emaprettyemacs1.pngcs/”>link. To set the font, use this code at .emacs file instead of adding to .Xresources file

(if (>= emacs-major-version 23)
(set-default-font "Monospace-11 " ))

prettyemacs

Changing Emacs Color Theme

To change Emacs color theme, first install emacs-goodies-el by typing
apt-get install emacs-goodies-el

To choose and try, run emacs and type
M-x color-theme-select

It will open a list of color theme. To use a certain color theme everytime emacs is started, create .emacs file in your home directory and type

;; Color theme
(require 'color-theme)
(setq color-theme-is-global t)
(color-theme-gnome2)

open your emacs again 🙂