background preloader

Emacs

Facebook Twitter

Emacs Basics - IMHO. It’s been a while since I wrote my Vim Introduction and Tutorial (exactly one year).

Emacs Basics - IMHO

A lot happened between now and then, I chose to get a better feeling about Emacs for example. The reasons aren’t easily explained; The most prominent reason is the awesome AucTex-mode since I’m working heavily with LaTeX lately. Anyways, learning Vim and Emacs is better than learning only one of them :-). Vim started in 1991 and is based on Bill Joy’s Vi written in 1976/77. Package Management in Emacs: The Good, the Bad and the Ugly. Exuberant Ctags. Exuberant Ctags.

Magit User Manual. Emacs Octave Support - GNU Octave. The development of Octave code can greatly be facilitated using Emacs with Octave mode, a major mode for editing Octave files which can e.g. automatically indent the code, do some of the typing (with Abbrev mode) and show keywords, comments, strings, etc. in different faces (with Font-lock mode on devices that support it).

Emacs Octave Support - GNU Octave

It is also possible to run Octave from within Emacs, either by directly entering commands at the prompt in a buffer in Inferior Octave mode, or by interacting with Octave from within a file with Octave code. This is useful in particular for debugging Octave code. Finally, you can convince Octave to use the Emacs info reader for help -i. All functionality is provided by the Emacs Lisp package EOS (for “Emacs Octave Support”).

This chapter describes how to set up and use this package. Please contact Kurt.Hornik@wu-wien.ac.at if you have any questions or suggestions on using EOS. Hippie Expand. HippieExpand looks at the word before point and tries to expand it in various ways including expanding from a fixed list (like `‘expand-abbrev’’), expanding from matching text found in a buffer (like `‘dabbrev-expand’’) or expanding in ways defined by your own functions.

Hippie Expand

Which of these it tries and in what order is controlled by a configurable list of functions. But what does it have to do with hippies? Bind hippie expand to a useful key To bind hippie-expand to M-<spc> put the following in your .emacs. Vincent Goulet - Emacs. ESS - Emacs Speaks Statistics. Www.gnu.org/software/emacs/emacs-lisp-intro/emacs-lisp-intro.pdf. Stevey's Blog Rants: Emergency Elisp. Are you an Emacs user but don't know Lisp?

Stevey's Blog Rants: Emergency Elisp

Welcome to my first Emacs Lisp primer! This should hopefully help get you over the hurdle so you can have more control over your Emacs sessions. There are lots of ways to do things in Lisp, and some are "Lispier" than others. I'm going to focus on how to do things you probably already know how to do from C++ or Java. I'm mostly focusing on the language itself, since that's arguably the hardest part. Lisp is good at some things (like code that generates code) and not so good at others (like arithmetic expressions). Most Lisp introductions try to give you the "Tao of Lisp", complete with incense-burning, chanting, yoga and all that stuff. Here goes. Quick Start Lisp is written as nested parenthesized expressions like (+ 2 3). There are also "atoms" (leaf nodes, basically) that are not parenthesized: strings, numbers, symbols (which must be quoted with apostrophe for use as symbols, like 'foo), vectors, and other miscellany.

(setq foo "bar") Comments: Hippie Expand. Emacs Tags. This page is about tags, a facility for recording names and their definitions and later looking up the definitions.

Emacs Tags

See BuildTags for how to build or update a tags file with a command-line program which records where names of different kinds of entities are defined and where they are referenced. Names that are indexed for quick lookup this way are called tags. Navigating using tags Once you have a tags file and M-x visit-tags-table, you can follow tags (of functions, variables, macros, whatever) to their definitions. These are the basic commands: `M-.’ See the Emacs manual, node Tags for more information: Tags. View tag other window This function acts like ‘find-tag-other-window’ but lets the point on current buffer: Choosing Among Multiple Tags for the Same Name A tags file can have multiple definitions, hence multiple tags, for the same name. Icicles Helps You Work with Tags In addition, you can use Icicles multi-command ‘icicle-imenu’ as an alternative to using tags.

Magit/magit. Org mode for Emacs – Your Life in Plain Text. A Curious Programmer. I use both vim and emacs regularly.

A Curious Programmer

For me, the most important difference between the two isn’t the modal/modeless thing. Nor is it even that emacs encourages working on multiple buffers within a single instance whereas vim users generally fire up a new instance for each file. No, what emacs has that vim does not is its superb handling of asynchronous processes. The magic of comint Comint is an emacs lisp library designed to simplify interaction with external interpreters. Capitaomorte/yasnippet.