emacs

Django debugging with Emacs

I found a lot of info about how to debug simple Python programs with Emacs. But what if I want to debug a Django application? I run the development server and I would like to somehow attach to the process from Emacs and then set breakpoints, etc. Similar to Visual Studio's "attach to process". How to do that? ...

Automatically wrapping I-search?

In Vim I can :set wrapscan so that when I do an incremental search, the cursor jumps to the first match whether the first match is above or below the cursor. In Emacs, if I start a search via C-s, the search fails saying Failing I-search if the first match is above the cursor. If I hit C-s again it then wraps the search, saying Wrapped...

RelaxNG (rnc) schema to extend XHTML

I would like to edit XHTML files using Emacs' nxml-mode which can use rnc schemas for on the fly validation. This is all built in to newer Emacs versions. However, my XHTML files contain elements from another schema. So <foo:foo> tags are valid, but only within the <xhtml:head> of the document. Currently, nxml complains because the XHT...

Relative path to absolute path in Elisp

Having a relative path, how do I turn it into an absolute one from the location where the elisp file that I'm loading is. That is, I have an elisp file that I'm loading, it has an relative path and I need an absolute one. ...

emacs keybinding hall of fame/shame

What are the best and worst emacs key bindings in development software? Ever since I learned it, I find myself trying to use C-p and C-n to move up and down in everything that has a text box on it. I'm perpetually annoyed by software that has an emacs mode that's pretty obviously either put together by someone who's never used emacs be...

How do I make Emacs show blank spaces?

How can I make Emacs show blank spaces (like a space, a tab, a line-jump, etc). Many other editors like Kate and Eclipse have this feature and I find it very useful to see when code is indent-broken because of mix of spaces and tabs (particularly Python). ...

defining new tooltips in emacs

Hello, I would like to add custom tooltips to emacs. More specifically, whenever I hover on a symbol (function/variable) name with my mouse of I would like to see a tooltip with the symbol's definition. I know that I can find this kind of info with a tool like cscope but I have no idea how to attach the output of cscope to a tooltip. do...

How to set the font size in emacs?

I was wondering how does one set the font size in emacs. I want to save this in the .emacs file but I don't know how to set the font. ...

How to handle conflicting keybindings

paredit binds M-<up> and M-<down>, but I want windmove to own those keybindings. I have paredit-mode set to activate in certain modes only, but windmove is set to run globally. I want windmove to win, but paredit steals those keybindings when it loads. How can I easily stop paredit from stomping on windmove's keybindings? I have been...

Which are the GNU Emacs modes/extensions you can't live without?

I have been using GNU Emacs for as long as I can remember. The Emacs modes I use regularly are: Tramp Template Color-theme Python VCS SLIME Paredit Uniquify RCIRC Org Which ones do you use? ...

Saving Meta in OS X Terminal

Since Terminal appeared I've saved as ~/mySrvr.term a modified stock .term file which opens to execute an ssh to a remote server and to modify the appearance. I have NOT been able to save "use option key as meta" for emacs-ery; there's no slot for it in the term file and I'm reluctant to wrestle with a keyboard dictionary file. Am I miss...

How do I connect to SQL Server using Emacs?

What steps do I take? Any gotchas to be aware of or tips to enhance the IDE experience that are specific to SQL Server when using Emacs? ...

emacs 23 and iPython

Is there anyone out there using iPython with emacs 23? The documents on the emacs wiki are a bit of a muddle and I would be interested in hearing from anyone using emacs for Python development. Do you use the download python-mode and ipython.el? What do you recommend? ...

Where is the current version of the Emacs calc?

I lost my installation of Dave Gillespie's calc.el by reinstalling Cygwin. It is not included with the default Cygwin install of Emacs. Who is considered the master maintainer these days? Is version 2.02f still most current? ...

Lisp In A Box - Why is it starting a server?

I've decided to get back into LISP (haven't used it since my AI classes) to get more comfortable with functional programming in general, so I downloaded Lisp In A Box (which we actually used in a previous class) which comes with CLISP and Emacs. When I run it, it says: Connected on port 1617. Take this REPL, brother, and may it serv...

What to teach a beginner in Emacs?

If you had a 10 minute hands-on session to teach someone Emacs, what would you show them? Start emacs: emacs ... Quit emacs: C-x C-c What else would you have them do between starting and quitting Emacs, while you stood behind them? ...

Getting emacs to untabify when saving certain file types (and only those file types)

I have the following in my .emacs file: (defun c++-mode-untabify () (save-excursion (goto-char (point-min)) (while (re-search-forward "[ \t]+$" nil t) (delete-region (match-beginning 0) (match-end 0))) (goto-char (point-min)) (if (search-forward "\t" nil t) (untabify (1- (point)) (point-max)))) ...

Emacs mode that highlight Lisp forms

What is the Emacs mode or package that highlights Lisp forms changing the color of the backgrounds so that the form you are in has one color, the outer form another, the outer outer form another and so on? ...

Regexps in Elisp to include newlines.

I'm trying to add a special markup to Python documentation strings in emacs (python-mode). Currently I'm able to extract a single line with: (font-lock-add-keywords 'python-mode '(("\\(\"\\{3\\}\\.+\"\\{3\\}\\)" 1 font-lock-doc-face prepend))) This works now: """Foo""" But as soon there is a newline like: """ Foo """ It ...

Disable Carbon Emacs scroll beep

I've been looking into adopting Carbon Emacs for use on my Mac, and the only stumbling block I've run into is the annoying scroll beep when you try to scroll past the end of the document. I've looked online but I can't seem to find what I should add to my .emacs that will stop it from beeping when scrolling. I don't want to silence it co...