emacs

I've never used ido mode. Do I want to?

What am I missing if I don't use ido mode? Is my life incomplete until I take the ido plunge? ...

Wrap selection in Open/Close Tag like TextMate?

In TextMate, one can use ctrl-shift-w to wrap text in an Open/Close tag and ctrl-shift-cmd-w to wrap each line in a region in Open/Close tags. How can I implement this same functionality in Emacs using emacs lisp? emacs becomes <p>emacs</p> And ... emacs textmate vi becomes <li>emacs</li> <li>textmate</li> <li>vi</li> ...

How do I get emacs to start in Vi mode?

I've tried putting (setq term-setup-hook 'vip-mode) in my .emacs file but this only seems to load the vip module and I have to manually call vip-change-mode-to-vi and C-z doesn't work as an alias for that method. What am I doing wrong here? p.s. Please spare me any religious sentiments. ...

Emacs org-mode publishing Agenda

How do you publish the agenda for org mode? I am currently using htmlize to write just the agenda buffer, but I want it to publish all the related buffers, and link the agenda items to the corresponding locations in the other files. Is there a way to do this? ...

Erlang emacs mode - setting outdir

Hello, Does anyone know how to configure Erlang emacs mode so that compiling a buffer [C-c C-k] writes the beam file to the ebin directory rather than the current directory ? Thanks! ...

Disable auto fill mode in noweb-mode

Please for the love of god how can I make Emacs stop auto-filling? I use visual-line-mode, I do not want auto fill. I can turn it off with M-x auto-fill-mode RET but in Noweb mode it gets turned back on when I move into a code chunk and back out again. Please, I just want to globally turn of auto fill mode, it's driving me crazy. I've t...

Getting Emacs to respect my default shell + options

I'm trying to get my Emacs shell to mimic that of my standard terminal sessions. Basically I would like it to respect the same PATH as well as the command prompt. So far I have a few issues: PATH isn't found, below is the fix I'm using for that. I'm getting ascii color codes all over the place with another fix I tried. I have the f...

Get inf-ruby to use ruby version manager (rvm)

I have the ruby version manager installed and use the ruby implementation installed by RVM set to the default so that 'which ruby' shows '~/.rvm/ruby-1.8.6-p383/bin/ruby' yet when I open an inf-ruby buffer in emacs, it uses the ruby installed in /usr/bin. Is there a way to get emacs to respect the path for ruby the same way the she...

Setting timezone of org-mode

I'm just getting started with org-mode, and really like it so far. I work in London with xemacs running on OpenVMS based on the East Coast US. Is there any way to get org-mode to use a timezone other than the server's default? I've tried: (setq calendar-time-zone 0) (setq calendar-standard-time-zone-name "GMT") (setq calendar-daylight-...

Run Emacs Command in Other Window

I'm looking for a way to send the output of an arbitrary Emacs command (in my case sql-send-region) to another window. I would prefer to maintain focus in the window I am currently in, which would effectively give me one window to edit queries and one window to view the output. ...

How can I make window movement commands ignore a certain window?

So I generally have 3 buffers open in Emacs. One buffer for the actual code I am writing. One buffer for the unit test for said code. A third buffer that displays the results of the unit test. This buffer comes into being below the two other buffers when I run my unit test C-x SPACE. How do I disable this third buffer such that when ...

What does ^L in (Emacs Lisp) source code mean?

Several times I see ^L in (mostly Emacs Lisp) source codes that looks like are separators of larger logical groups. Is it their real purpose? And if so, how can I use them? Is there a built-in Emacs functionality that utilize it? ...

How do I fully-justify latex code on EMACS

Hi, I want to fully-justify latex code on EMACS so that my latex code will look better. For example, I remember my advisor sending me latex in fully justified way like this: In ~\cite{Hummel2004}, authors described an approach for harvesting software components from the Web. The basic idea is to use the Web as the underlying repos...

How to display indentation guides in Emacs?

I'm trying to switch to Emacs as my primary source-code editor. I really miss one thing (common in even much simpler editors) - indentation guides (unobtrusive vertical lines which show the indentation level). Is Emacs able to display them? ...

Define an emacs command that calls another emacs command (preserving interactive stuff)

How can I define an emacs command X that does something and then calls another emacs command Y and also copying the interactive interface of the command Y too? I want to define an altenative version of query-replace with temporarilly toggled value of case-fold-search: (defun alt-query-replace (a b c d e) (interactive) (let ((case-f...

Emacs behind http proxy

Emacs is able to access the internet with packages such as url.el or the W3 web browser. Also, the Emacs Lisp Package Archive is heavily dependant on package url.el. Now, how do I configure Emacs to use my HTTP proxy to connect to the internet in general ? Bonus points for any help with ELPA behind a proxy. Yes, I've had problems wit...

How does emacs url package handle authentication?

I have not seen a really good example on the web. How can I add authentication to a request like this: (defun login-show-posts () (interactive) (let ((url-request-method "GET") (url-request-extra-headers '(("Content-Type" . "application/xml")))) (url-retrieve "http://localhost:3000/essay/1.xml" (lambda (status) ...

emacs, etags and using emacs as an IDE

Hello, My usual tools are Emacs with g++ on a Linux system to implement my research algorithms. For the last some years, I have used emacs in a fairly basic way. I open C or C++ files, edit them with a syntax highlighting scheme of my choice and compile and do other stuff from within emacs (or maybe from a terminal), including using gdb...

Modifying a custom defun to not conflict with Magit

I use the following smart-tab defun in my .emacs for either completion on a word or just to do a standard tab: (global-set-key [(tab)] 'smart-tab) (defun smart-tab () "This smart tab is minibuffer compliant: it acts as usual in the minibuffer. Else, if mark is active, indents region. Else if point is at the end of a symbol, ex...

Emacs - Using "Select All" in Function (how to find the function bound to a key)

I'm trying to figure out Elisp, and I've hit a roadblock. I want a function that will Indent the entire file. Right now, I'm selecting the whole file (C-x h) and then doing M-x indent-region (which does have a shortcut key). I'd like to combine that in to a single keypress, but can't figure out how to do C-x h in a function. Thanks ...