emacs

emacs python mode preferences

I 'm just starting to use Python, but I'm a very experienced emacs user. I'd trying to decide between python.el and python-mode.el (or any other equivalent mode people can suggest). Currently I'm leaning strongly towards python-mode.el, mainly because it has a useful "indent-region" method... However, there's a couple of features of C...

How can I get a variable's initial value in Elisp?

In Emacs Lisp, is there a function to get the initial value of a symbol initilized by defvar? Like the some-function shown below: (defvar var "initial value") (setq var "changed value") (some-function 'var) => "inital value" ...

CEDET scalability tips

I use CEDET (latest CVS) with several moderately large projects (a few hundred kLOCs each, mostly C, but some C++) and sometimes experience long pauses in which the system is completely unresponsive for seconds. More rarely, it spins out of control completely and I have to mash on C-g and try to move the cursor or switch to a different ...

apt-cache search [emacs*+] doesnt find emacs in debian

I can't find the emacs package to install on debian. My /etc/apt/sources.list looks like: I am using apt-cache search [emacs*+] . I get a list of packages which depend on emacs, but not emacs itself. Any thoughts? I installed the Debian base system only. ...

Do you use Emacs tabbar?

The emacs tabbar.el package adds (buffer)tabs to each window and comes standard with aquamacs and can be added to emacs23 with the emacs-goodies-el package. Are any of you hardcore emacs users actually using tabbar? I'm sort of used to having tabs, but I would like to know if working without them could be more productive, and if there a...

Why does cygwin's svn ask for a password?

At work we have svn setup so that when I have an ssh tunnel open to the server I can access repositories from localhost without beeing prompted for a password. (The repositories are accessed via svn://localhost/ urls). Everything works fine with TortoiseSVN and windows command line svn, but I would like to use cygwin svn. The problem is ...

M-x occur-instant

I like to do something equivalent to M-x occur in google-instant fashion. So as I type the regex, it will display all the matches. This would be little different compared to M-x iseaerch-forward-regexp, because the matches will be shown in different buffer, rather than same buffer. Is there anything equivalent? Thanks. ...

Stripping duplicate elements in a list of strings in elisp

Given a list such as (list "foo" "bar" nil "moo" "bar" "moo" nil "affe") how would I build a new list with the duplicate strings removed, as well as the nils stripped, i.e. (list "foo" "bar" "moo" "affe") The order of the elements needs to be preserved - the first occurence of a string may not be removed. The lists I'm dealing wit...

Speed up loading emacs by compiling packages

With packages loading such as orgmode, nxhtml, yasnippet, I see that the loading of emacs slowed down pretty much. I expect I can speed it up with the compilation of the packages. I can I do that with emacs? Normally, how much speed up can I expect? ...

How to make intangible text in emacs to be completely removed by deletion commands?

Hi there! I would like the whole intangible text to be deleted by delete-char and backward-delete-char. Any easy way? (put-text-property (point-at-bol) (point-at-eol) 'intangible t) kill-word and backward-kill-word will delete the intangible text, and I'd like the *-char commands to do the same. In the user interface I am building, ...

Disable emacs-rails mode tab completion

I'm looking to disable (or customized) tab completion in emacs Ruby on Rails mode, specifically code completion. The fact that tab completion overrides using tab for indenting plus the fact that tab completion tries to complete lines like "end" is fairly infuriating. Thanks ...

How do I get emacs to always open customize-group windows in -other-window?

Basically what the title says. Is this possible? ...

Key bindings or workflow suggestions for managing breakpoints with pydbgr in Emacs 23.2

I have pydbgr working well now in Emacs 23.2 with virtualenv. But I am confused why breakpoints are not established from the source code buffer after running M-x pydbgr - as they would be e.g. when using pdb. I tried invoking C-cC-b but this does not toggle breakpoints on the selected line as one would hope/expect. Neither does C-xSP...

Emacs: fastest way to open a file whose location is not known

What is the easiest way to open a txt file whose path has to be found using the shell find command? For example, let say I want to open a file that I know is (uniquely) named example.txt and which I know is "somewhere I can find it using the shell find command". What I do currently is this: I do C-u (universal-argument) then M-! (shel...

P4CONFIG with emacs

I would like to see examples of how to setup perforce, using the config file functionality where emacs is used as the diff and merge programs (P4DIFF and P4MERGE settings). Even better if this is on Windows. I'm also struggling with getting the P4EDITOR to work correctly when using emacsclientw, specifically specifying the alternate-edi...

Please help: pylint does not work with Emacs23

Hi, I am trying to use Pylint with Emacs on Windows XP. My Emacs version is EmacsW32 23.1, pylint is 0.21.3 with Python 2.5. After easy_install pylint, I added the following lines to Emacs init file, copied form Emacs Wiki. When I invoke the flymake-mode on a .py file, I can see the flymake starting the syntax check, the mode status c...

Vim or Emacs for Rails development... any advantages?

Getting ready to try out vim or emacs for rails development. Does one of these support rails development any better than the other? This is on windows if that matters. Edit I'm not looking for reasons why or why not to use vim or emacs and I don't want opinions on which is a better editor. I mainly just want to know if one or the ot...

How do I list the defined keys in emacs isearch-mode?

How do I list the defined keys in emacs isearch-mode? Based on http://stackoverflow.com/questions/2845934/emacs-print-key-binding-for-a-command-or-list-all-key-bindings I have tried C-h m, but I cannot do that while in isearch-mode (C-h and M-x seem to cancel out of it) Thanks, -Shawn ...

Auto Include python import statements in vim /emacs?

In eclipse, there is this handy shorthand CTRL+SHIFT+o which will auto include the import (include) statements which are needed based on the Class or module being used. Have you found any such plugin for vim or emacs? ...

How do I rearrange a split pane in Emacs?

In Vim I can move a split around. For example, if my window was split in two horizontally, with the topmost split split vertically (3 splits in total) I could move the top-right split to the right to become a vertical split taking up the entire vertical space. Is this kind of rearrangement possible? Update: I know resizing is possible...