emacs

New mail notifications in Gnus for Emacs

I am using Gnus within Emacs as my mail client. I have my .gnus.el configured to check for mail periodically [1] but, right now, I have no way of knowing if I have received new mail short of switching to the Group buffer. I would like to receive some type of notification when I have new mail in a specific group or groups. I found gnus-no...

How do you get Python documentation in Texinfo Info format?

Since Python 2.6, it seems the documentation is in the new reStructuredText format, and it doesn't seem very easy to build a Texinfo Info file out of the box anymore. I'm an Emacs addict and prefer my documentation installed in Info. Does anyone have Python 2.6 or later docs in Texinfo format? How did you convert them? Or, is there a m...

Emacs Wishlist

Emacs is great. To me at least, Emacs is a metaphor of all software. Still, I know that it lacks some features sometimes that you have to actually migrate to other environments. Given emacs is so customizable, and great and everything, we only have to wish for it right? What do you think is a feature that emacs lacks right now? Note: A...

Searching with intelligent bracket counting (Elisp)

I have the following function that deletes the LaTeX command surrounding the current cursor position: (defun remove-tex-cmd () (interactive) (save-excursion (let (cur-point beg-point end-point) (setq cur-point (point)) (catch 'notexcmd (if (not (re-search-backward "\\.*?{" nil t)) ; now the point is at the { ...

Regex replacement with Emacs

I am trying to do a search and replace with regexs. Suppose I have a foreach(foo1.txt, foo2.txt, foo3.txt, foo4.txt). And I want to put " around each item in the list. I thought- from the documentation - that this regex would work (foo[1-4]\.txt) -> "\&". But it doesn't. What am I doing wrong? ...

Emacspeak for those who aren't visually impaired

Is anybody who's not visually impaired using Emacspeak? Are there any tasks for which it is particularly well-suited and more efficient than a visual interface? ...

Emacs: Where to put the psvn.el file?

I am totally new to emacs and is starting to learn how to use it effectively. The first thing I wanna use is the svn mode. I downloaded psvn.el and put it in the ~/.emacs.d directory Then following the instruction in the comment part of the psvn.el file, I put this line (require 'psvn) Into the .emacs file This is my current .em...

A hello world example for a major mode in emacs?

Can anyone provide me with a hello world example for a major mode in emacs? I guess it's a beginner question, still I really like to write a major mode, both to learn emacs and elisp, as to be able to use customization to the fullest. What I have done so far (and is working) : wrote a file sample-mode.el and put it in a lisp dir ca...

how to easily experiment with elisp code that involves moving a cursor (caret)?

I usually play with elisp code on my scratch buffer. I find it hard to play with elisp code that moves cursors in this way because I don't know how to separate the buffer for editing code and the buffer for testing the code. For example if I want to play with the following code: (backward-up-list 1) (backward-sexp 1) (kill-sexp 2) fr...

emacs color syntax configuration

Hi, Does anyone know if I can find an emacs color syntax configuration which resembles eclipse's syntax coloring? Thank you for any suggestion. ...

How to set Cscope->database-> Set init directory

Hi, I am using xcode with emacs. But everytime I start emacs, I need to go to menu 'CScope' -> Cscope->database -> set init Directory and it pick the root directory of my source. And then I click 'CScope' -> Cscope->database -> set init Directory->create list and index' Is there anyway I can configure that in .emacs so that I don't ...

By Emacs, how to join two lines into one?

I am green hand for Emacs. I have gooogled this but no good answer there. One of them is Ctrl-n Ctr-a Backspace This works but is stupid. Is there a quick ans simple way to join a block of lines into single? Actually, I can use Esc-q to auto-fill a paragraph now, but how could I get it revert without UNDO? ...

Change Emacs syntax highlighting colors

I'm running Emacs, editing files in C++ mode and PHP mode. I love syntax highlighting as a concept, but the default colors are a travesty. I can barely read some of them: way too dark. What is the easiest way to change their values? I can't seem to find anything about this on the web. I don't even mind changing the binary as I'm compilin...

pymacs: General question and Installation problem

Hi, all, I am trying to setup emacs for python development. From what I read, it is recommended to use python-mode.el rather than the default python.el from Emacs 22.3. So I embark on the new adventure. From what I understand, python-mode has the several dependencies, so I need to install rope, ropemode and ropemacs. Then on top of t...

Using Emacs, how could I indent/format a code segment in a TXT file?

I am writing a document with Emacs. As you know, there are some code segments in the text file I am working with. Typically, when I open this file, emacs will get into text-mode automatically. And it works fine for me to edit the ordinary paragraphs. But for those code segments, how could I indent them into gnu or linux style just like w...

Authoring HTML5 in Emacs?

What's the best solution for authoring HTML5 in Emacs? Is there a mode that will do conformance checking? ...

How to achieve code folding effects in emacs

Whats the best way to do achieve something like code folding, or the type of cycling that org-mode uses. What would be the best solution in elisp to create this type of behavior? EDIT: I'm sorry I was not clear. I want to program something in elisp that does things very similar to code folding, or actually most like org-mode with the ...

What specific productivity gains does Vim/Emacs provide over GUI text editors?

This isn't meant as a troll or flamebait or anything like that. I've been using Vim as my console-editor of choice for a couple months now (for editing configuration files while in my terminal), but I don't think I could stand it for my normal, every day work of writing web applications, which I do with a GUI text editor (which one isn'...

What is your recommended Emacs Lisp?

As for me, what I use is as follows recently yasnippets -- http://code.google.com/p/yasnippet/ If there is a good code, Could you introduce it for me? ...

Insert spaces instead of TAB in Emacs viper-mode

I am long time-vim user and recently discovered that emacs has viper-mode, offering best of both worlds (at least for me). However one thing is really bothering me since I am mostly coding in python and mixing of tabs and spaces is a big deal. When in insert mode I would like to insert viper-shift-width spaces instead of TAB when I pres...