Fun with Emacs
You probably heard that emacs can do lots of things. This page shows some.
tetris to start it. Use arrow keys to move the blocks.
kill-buffer to close it.
You can split your window into two or more panes, vertically or horizontally.
split-window-below→ split top/bottom.
split-window-right→ split side-by-side.
other-window→ move cursor to another pane. (or click mouse)
[see Emacs: Split Windows]
To run calendar in emacs, Alt+x
To close the calendar pane, type q.
To run a calculator in emacs, Alt+x
To quit calculator, type q.
To compute “1+2”, type 【1 Enter 2 +】. Or, you can type the expression directly by starting with a sinle quote, like this: 【' 1 + 2 Enter】.
Directory Navigation and Managing Files
To start, Alt+x
dired, then, type a dir path.
To exit, press 【q】.
For a full tutorial, see: Emacs: File Manager, dired.
To view the colors and their hexadecimal values in RGB model, Alt+x
list-colors-display. This is very useful when you work in CSS and HTML.
Command Line Interface (aka Shell)
shell to start a shell interface.
For detail, see: Emacs: Run Shell in Emacs.
LISP in Emacs
Sometime you hear that emacs has the artificial intelligence language LISP built-in. That's right. Here's how you can run a short example.
In emacs, open a file, any file. In the file, type
(+ 1 2), then, select the whole text, then Alt+x
eval-region. You will see the result “3”. CONGRADULATIONS, you've just evaluated a lisp program!
See: Emacs Lisp Basics.
Internet Relay Chat (IRC)
If you don't know already, IRC is Internet Relay Chat. IRC is a public instant messaging forum that allows a groups of people to discuss things together. Typically, irc topics are about programing languages (Perl, Bash, PHP, HTML, OCaml, etc.) or tools (emacs, ubuntu, git …).
Yes, you can run IRC in emacs if you are running emacs version 22 or later. To see what version of emacs you have, type “emacs --version” in the command line prompt. Or, inside emacs, Alt+x
To start irc, Alt+x
irc. Then, you'll be prompted to enter the server name and port and user name, and channel you want to join. For example, use the following:
IRC Server: irc.freenode.net IRC Port: 6667 IRC Nick: imrandomjack Channels: #emacs
then you'll be connected to the #emacs discussion room in the irc.freenode.net server.