emacs

emacs sqlplus disconnected

I started using sqlplus for emacs. It works fine except one thing - very often I get a message "Buffer ... is not talking to anybody". In a file sqlplus.el there is the following code which verifies (get-buffer-process process-buffer-name). How can I keep alive the sql process? (defun sqlplus-verify-buffer (connect-string) (let ((outp...

How to use Emacs's url.el lib without having it ask the user on a 401 (Unauthorized) response?

I want to use url.el (and url-http.el specifically) to make some REST calls programmatically. The user has already specified the credentials via other means (but this is only mildly relevant -- I want to get the same behaviour for un-authenticated calls as well) but on certain queries I can still get a 401 (Unauthorized) response. I wan...

viper-auto-indent breaks inferior modes

Hi all, As a vim convert, I've gotten fairly used to viper mode. One issue that I've discovered, however, is that viper-auto-indent breaks all inferior modes. What happens is when I enter any sort of inferior mode (sql-mode, ess-mode, etc.) and hit Enter, the Enter key doesn't actually send the command off to the inferior process and gi...

Figure out what buffers have been opened by a function in elisp?

I'm trying to write a plugin that calls a function (icalendar-import-file) which has the nasty side effect of opening between 1 and 3 buffers every time it is called, and sometimes I want to call it a whole bunch of times. I can't even find a function that will list buffers without popping up a new buffer, which is a little frustrating....

Compiling Emacs on Snow Leopard

Has anyone successfully compiled the latest CVS version of Emacs on Snow Leopard? If so, could you provide instructions? I was using the following on Leopard, and it worked fine: cvs -z3 -d:pserver:[email protected]:/sources/emacs co emacs cd emacs ./configure --enable-carbon-app --with-ns --with-jpeg=no --with-gif=no \ ...

Using gdb in emacs v23

I am trying to move from Emacs v22.3.1 to v23.1.1 and all was going well until I tried to run gdb using gud inside Emacs. When I do meta-x gdb and give a command of 'gdb /my/executable/here' the window comes up fine, but when I type a command at the gdb prompt upon hitting return key to execute the command, nothing happens, status bar s...

How do I change the scratch message in Emacs?

The scratch message always says: ;; This buffer is for notes you don't want to save, and for Lisp evaluation. ;; If you want to create a file, visit that file with C-x C-f, ;; then enter the text in that file's own buffer. How do I remove this and make the blank scratch message the default? ...

XML mode for XEmacs?

I'm a GNU Emacs user who uses nxml-mode for editing XML files, but I have a colleague who would like to use XEmacs for editing XML files. It seems as though my colleague can't use nxml-mode because the README file for that package says: To use this, you need GNU Emacs version 21.x, preferably 21.3. GNU Emacs version 20 will not wor...

Emacs - recolor matching lines in ERC

Is there a way to get ERC to highlight all lines that come in that match a certain regexp? For context, I'm using ERC to connect to a bitlbee server and wish that when I issue a 'blist' command, my friends who are online are highlighted in green and those away are highlighted in red. ...

Pipe ESS to terminal outside of Emacs?

I'm not sure if this is possible, but does anyone know if I can pipe ESS commands (i.e. evaluate region) to a R process running outside of Emacs? The Emacs terminal hangs up a bit (more often than Apple's terminal) and I'd like to just ditch it, while still using ESS commands. Currently I am doing the less efficient copy and paste techni...

Emacs Actionscript 3 indentation for functions defined inline in an arglist

I'm using the actionscript-mode-connors.el for indenting Actionscript 3 code in emacs. I have most things figured out, but one thing bothering me is when I use an inline closure as a function argument, the indentation of the interior of the function is screwed up. For example: var foo:int = some_function( bar, baz, function():vo...

Multiline sentence in emacs

If I have a multiline sentence in Emacs it naturally overflows onto the the following lines. Now, if my cursor is at the beginning of such a sentence and I press the DOWN ARROW key, the cursor is placed at the beginning of the next sentence (which might be at 4-5 lines down), rather than on the next line itself (which other editors do). ...

Emacs macro to generate a sequence?

I was reading this article on how to create vi macros: vi sequence macro and I saw one useful macro to create a sequence in the buffer. 1. 2. ... 100. In vi, the trick is that one can hit ctrl-a over a number and it will add one to it, so this made the macro easy. I want to be able to do the same thing in emacs. ...

With emacs, How do you swap the position of 2 windows

I've got 2 windows open in Emacs and I'd like to swap their positions. Ie Consider having a REPL above the source file and I'd like to swap their locations so that the REPL is below the source file. I'd also like to preserve the sizes of the windows ...

How do you list the active minor modes in emacs?

How do you list the active minor modes in emacs? ...

Emacs not indenting PHP correctly, although C/C++ do?

I am running GNU Emacs 22.2.1 on a HP notebook running Ubuntu 9.04 with the latest patches. Recently, I need to handle some PHP codes, so I added Ubuntu's php-mode package, thinking what I have in my .emacs would cover the basics. Well, almost. The following short snippet shows the symptom: <?php # main() /* * * */ { $fpath="...

OCaml Emacs Tuareg: Evaluate phrase keyboard shortcut, and how to display actual greek symbols?

Two questions about Emacs Tuareg for OCaml: I have seen some configurations where it displays an alpha symbol instead of a'. How can I turn this on? What is the keyboard shortcut for "evaluate phrase" or "evaluate buffer"? ...

Emacs how to auto-complete words of include files on C ?

How can I make Emacs to complete words that are in C include files ? #include <stdio.h> int main(){ print//<-- this is where I want it to complete printf What's the simplest way? (something simpler than Cedet) ...

Eclipse Emacs command numeric argument

Is there a way, with the Emacs bindings for the Eclipse editor, to specify a numeric argument for a command? This is a very common thing to do in Emacs, usually for repetition. Most implementations use Ctrl+u, but this doesn't work by default in Eclipse and I can't find any likely command that does it. ...

Magit not recognising git repositories

I'm currently trying to use Magit with Emacs 23.1 on Win7 64-bit but Magit does not recognise my git repositories. Please bear in mind I'm a complete Emacs newbie. I run the magit-status command and it asks for a directory containing the repo, which I obviously type in and then it just says every time I try: "There is no Git repository...