Skip to content

Tag Archives: Emacs

10 Essential Emacs Items

Yet another man’s vision of how to master Emacs.

Toggle between Vertical and Horizontal Windows Splitting

On gnu.emacs.help:

Requested: Function that toggles between vertical and horizontal split layout of currently defined windows preferrably preserving splitting ratio.

(defun my-toggle-window-split ()
"Vertical split shows more of each line, horizontal split shows
more lines. This code toggles between them. It only works for
frames with exactly two windows."
(interactive)
(if (= (count-windows) 2)
[...]

GNU Emacs on Cygwin

While it is possible to run Emacs on Windows, I suspect that Emacs “expects” to be running on UNIX. As such, I’ve decided to perform an experiment and try to do most of my work in Cygwin, including running Emacs. The following is how I did it:
Steps

Create a Windows environment variable named ‘CYGWIN’ with the [...]

Emacs Commands Work in OS X

Emacs Commands Work in OS X.
Guess it is time to buy a Mac ;).

10 Essential Emacs Tips

One man’s vision…

A Guided Tour of Emacs

[Trey] recently came across the GNU page: A guided tour of Emacs. It is a gem of an introduction to Emacs. Unlike the help distributed with Emacs (tutorial, FAQ, *info* pages), this tour does a good job illustrating the wide variety of Emacs capabilities

Choosing a font in Emacs on Windows

The truth is that I haven’t read the Emacs documentation yet. I will read it, it is on the list. Until then, I’ve relied on other kinds folks to provide answers for my questions. Tommy was kind enough to provide an answer for this one.
Evaluate the following in the scratch buffer:

(insert (w32-select-font))

For more information [...]

Lucida Console Font on Emacs

Folks running Emacs on Windows (like me) might like to set their font to Lucida Console.
Until I find a tool or documentation on how to write X style font lines, I’ve copied some font-lines from other folks websites.

; (set-default-font "-outline-Lucida Console-normal-r-normal-normal-11-82-96-96-c-*-iso8859-1")
; (set-default-font "-*-Lucida Console-normal-r-*-*-11-82-*-*-c-*-*-ansi-")
; (set-default-font "-*-Lucida Console-normal-r-*-*-11-82-*-*-c-*-*-#204-")
; (set-default-font "-outline-Lucida Console-normal-r-normal-normal-12-90-96-96-c-*-iso8859-1")
; (set-default-font "-*-Lucida Console-normal-r-*-*-12-90-*-*-c-*-*-ansi- ")
; (set-default-font [...]

Predictive Abbreviation Expansion in Emacs

pabbrev is a yet another package for abbreviation expansion in Emacs. Unlike dabbrev, this one analyzes the contents of the buffers during idle time, and shows potential expansions based on word frequency.
Check it out over at Trey’s place.

VI Commands Translated to Emacs

Here is a good page that gives VI users the equivalent Emacs commands for very common actions.
This is sure to help those of us making the transition!