emacs

Emacs CPerl mode: bug in indent-region

I edit my Perl scripts in Emacs, using CPerl mode. But the Emacs function indent-region is broken in that mode. If I have a variable: my $num_elements; it becomes my $num_ elements; It's very annoying, especially since I am used to using underscores in variable names, and I press the keyboard shortcut for indent-region all the tim...

AucTeX/emacs problem with '$' character.

AucTeX on emacs is pretty amazing tool, but when I write one single '$', all the coloring is broken. Normally one '$' is accompanied by another '$' to express math equations, but for source listing single '$' is frequently used. \begin{Verbatim} (let ((buffer (url-retrieve-synchronously ... (re-search-forward "^$" nil 'move) <-- ...

Emacs remember text selection

Hello all. I decided that I was ready to try something new, after a few years of using gEdit for most of my coding needs, and try to learn using Emacs. I knew this would be difficult, as I have heard how complex Emacs can be, but I was lured by its power. The hardest thing has been getting used to writing ELisp in the .emacs file to c...

repl is not working(clojure box)

Hello all I want to use syntax highlighting for clojure in emacs + slime + clojure. So I did following step. run clojure box M-x clojure-mode in slime-repl clojure syntax highlighting is success. But repl is not working. I expect a result of 3. But cursor blinks. repl no response. ; SLIME user> (+ 1 2) -K\**_ *slime-repl cloju...

elisp regexp search in strings, not buffers

I have been searching everywhere in the emacs lisp documentation for how to regular expressions search into a string. All I find is how to do this in buffers. Is there something I'm missing? Should I just spit my string into a temporary buffer and search for it there? Is this just the coding style of elisp, something I'll get used to?...

Escaping spaces when calling (buffer-file-name) in emacs

So, I had a question about getting word count to work properly in emacs LaTeX mode (auctex, actually, but never mind.) That was answered fine. Then I found I had trouble when the (buffer-file-name) included spaces. This made it mess up. This problem was got around too. Now the problem is that the solution breaks when there AREN'T any spa...

How to word wrap in emacs?

I'm a new user to emacs. How do I configure emacs so that line wrapping does not break in the middle of a word? ...

Running M-x sql-postgres in emacs on windows

When I try to run an inferior psql process in emacs on windows, I seem to be getting no response. This seems to be a known problem the solution of which is to install the cygwin version of psql. Unfortunately, the cygwin psql appears to do absolutely nothing, even psql -V does nothing. Does anyone have a solution to either of these pr...

Emacs + Cygwin setup under windows !

Hi ! I just downloaded Emacs and Cygwin for Windows(Vista in my case). Have no idea how to set them up. Any help would be appreciated ! Thanks ! ...

Run certain Emacs init commands only in GUI mode

Is there a way to run certain commands (from init.el) only when I am in GUI mode and not in terminal mode. I want to set a certain color scheme when I run the GUI version, but that scheme screws up the terminal window's colors pretty badly. I'm looking for some variable/function which would look something like this: (if gui-mode (color-...

emacs ansi-term background color

I'm having a problem changing the background color in ansi-term (and also term - but shell is fine). It displays colors fine from output but the background color of the out put is always white. Not the entire buffer, but just under actual characters that have been outputted. If I do something like (add-hook 'ansi-term-mode-hook (lam...

Emacs delete rectangle of more than one page

on one page I mark and point my rectangle and use this command ctr+x+r+d to delete the marked rectangle if the rectangle is spread on 2 pages and more i can't able to mark and point the rectangle could someone provide how i mark and point rectangle longer than one page (one screen) ...

Using minted (source code LaTeX package) with emacs/auctex

As is explained in here, I find minted package is pretty cool for source code listing. My question is how to use minted package with AucTeX/emacs? For command line I can use 'pdflatex -shell-escape SOURCE', but Q1 : How can I modify the AucTeX to insert the -shell-escape? I mean, how to change the action for C-c C-c? Q2 : Do I need s...

Why is Emacs used by everyone interviewed in Coders At Work?

I'm using both Vim en Emacs (Vim for a few years, emacs for a few months). I like both but I tend to see Emacs as a bit cumbersome and unfinished. For example some very basic action such as copying a word has to be added if you want it. But I love the fact that you can easily customize it. I'm currently reading Coders At Work and I love...

Emacs Icicles Space

I've gotten used to , when i press M-x that whenever i type a space, it gives me a hyphen and yet I'd like to use icicles, so is there a way to change it so that whenever i type space, it gives me a hyphen? ...

Emacs user base size

I have for several years tried to get an estimate of the emacs user base. Does anyone have good estimates besides the naive guess of the Linux/unix install base? ...

When using two frames in emacs, how do I prevent the compilation buffer from showing up in both?

I work with two monitors, and often use emacs with two frames open; one for each monitor. each frame is split into two side-by-side windows, like so: a | b <-- frame 1 in monitor 1 ------- c | d <-- frame 2 in monitor 2 When I hit my 'compile' button while in window a, the compilation buffer opens in the buffer next to it. So fa...

How to tell emacs to open .h file in C++ mode?

What lines should I add to my _emacs (on Windows) file to have it open .h files in C++ mode? The default is C mode. Thanks, kris ...

Why does an apostrophe in a python docstring break emacs syntax highlighting?

Running GNU Emacs 22.2.1 on Ubuntu 9.04. When editing python code in emacs, if a docstring contains an apostrophe, emacs highlights all following code as a comment, until another apostrophe is used. Really annoying! In other words, if I have a docstring like this: ''' This docstring has an apostrophe ' ''' Then all following code is...

ExtJS mode for Emacs

I got used to Emacs, and it's JavaScript modes are quite modest, as far as I can tell. I'm about to do some serious ExtJS coding, and I'd like to use Emacs. Spket plugin available in Eclipse is great, but is there any ExtJS Emacs mode available? After thorough Google querying, I reckon that chances are very slim, but... hey... just askin...