emacs

Flymake is not working for me on Windows Emacs

Debugger entered--Lisp error: (void-variable compilation-error-regexp-alist-alist) (flymake-reformat-err-line-patterns-from-compile-el compilation-error-regexp-alist-alist) (append (quote (... ... ... ... ... ...)) (flymake-reformat-err-line-patterns-from-compile-el compilation-error-regexp-alist-alist)) (defvar flymake-err-line-pa...

Why isn't return bound to newline-and-indent by default on emacs

I have tried emacs on and off for a while now and every time I start emacs, I go through the same routine. Customizing. The first one is binding return to newline-and-indent. (g)Vim does this by default. Showing matching parenthesis is also done by default on (g)Vim. It is grea that I can customize emacs to my heart's content but why doe...

strtotime for Emacs Lisp

Is there any functionality in Emacs Lisp that behaves similar to PHP's strtotime function? (Actually AFAIK it implements relative items of the GNU date input formats.) In PHP I can write echo strtotime("+2 months"); //1258891352 echo strtotime("-3 months +2 weeks"); //1246952239 which return the corresponding UNIX timestamps. ...

epylint script is not working on Windows.

I have installed http://ftp.logilab.org/pub/pylint/pylint-0.18.1.tar.gz on Windows and now I am trying to configure my Emacs's flymake mode using epylint script. But it is not working. Here is the output of I got when I tried epylint on windows command prompt. C:\>epylint test.py 'test.py':1: [F] No module named 'test.py' Did anyone t...

Emacs merging buffers into one without using C-x 1 keybind

Hi! Could you suggest the key bind in emacs to do the following: Steps: for example 1) I divided all text editor area into 2 pieces with command C-x 2 2) Then I divided first one on another 2 pieces with C-x 3 3) How can I make the first piece (a buffer in this case) See attached image for better description of what I want get ...

Emacs C-mode indent problem with Doxygen style comment

I am having a problem with Doxygen style multi-line comments with emacs indent feature in c-mode. According to Doxygen manual (http://www.stack.nl/~dimitri/doxygen/docblocks.html) the form below is accepted. /********************************************//** * ... text ***********************************************/ I am trying t...

How do I jump to the matching tag, when editing editing HTML in Emacs?

Suppose I'm editing a very long and messy HTML file. With my cursor at an open tag, is there a way to jump to it's closing tag? ...

Emacs: Keyboard Macros and Dired

Is there an emacs command which would apply a kbd macro to every file in dired? e.g. query-replace-regexp has dired-do-query-replace-regexp I'm looking for a dired-do-call-last-kbd-macro ...

Traversing a directory tree

i am trying to traverse a given directory and create a list of files ending in .jpg. (setq files (list )) (defun jpg-list(directory) (dolist (node (directory-files directory t ) ) (if (file-directory-p node) (if (not (string= (substring node (- (string-width node) 1)) ".")) (jpg-list n...

Can an elisp piece of code "yield" so emacs doesn't block?

Is there any way to write something like this without taking over emacs? (defun dumb-wait (seconds) (let ((done (+ (second (current-time)) seconds))) (while (< (second (current-time)) done) (message "waiting")))) (dump-wait 5) will block emacs from 5 seconds. Is there anyway to write this so it doesn't block?...

How to control indentation after an open parenthesis in Emacs

When I use emacs python-mode, if the last character of a line is an open parenthesis it indents the next line just one step in from the indentation of the previous line. call_some_function( some_very_long_argument_that_I_want_to_put_on_its_own_line) I like that. Now in ecmascript-mode (which I am using for actionscript 3), it alwa...

elisp how to check if Shift key is pressed

I need to check if Shift key is pressed. More exactly I would like to set dired switches depending on whether Shift is pressed. (defadvice find-file-noselect (around find-file-noselect-set-switches activate) (let ((switches dired-listing-switches)) ;; check if shift is pressed and set or not an "R" switch (setq dired-listing-s...

Is there a way to get emacs's anything to do "fuzzy" searches?

I'm not sure if fuzzy is the correct way to phrase this, so allow me to explain what I want to do. Often times, I'm looking for files that I know are within a particular directory in my local SVN working copy, and I have an idea what directory they're in, but don't want to think of the precise path or there may be several copies of it i...

In VisualStudio 2008, emacs mode - how can you enable "overwrite"?

Using VisualStudio 2008, have emacs keyboard mapping scheme enabled. If I select text and try to paste over it, it INSERTS the new text, rather than replacing it. Also, if I select text and hit DELETE it deletes the first character AFTER the selected text (just as if I didn't have any text selected). Does anyone know how to fix this...

How to have emacs auto-refresh all buffers when files have changed on disk

I have a non-emacs global search and replace function that causes my disk files to become more up-to-date than my emacs buffers (en masse). Is there any way to tell emacs to refresh all the buffers from disk in one fell swoop, instead of having to do each one individually by reloading the file? Thanks! D ...

How to do a case-sensitve incremental search in Emacs of an all lower case pattern?

In Emacs, by default, incremental search is case-insensitive. However, if you type any upper case characters as part of the search string, it becomes a case-sensitive search. So the question is, how do you easily perform a case-sensitive search of an all lower case pattern. The fewer the characters and easier to remember the better. ...

EMACS for C++ development - Problem with CEDET code completion and project

I am setting up EMACS for a C++ project on UBUNTU. I am successful so far in installing ECB CEDET - I got code completion and other features working. Color theme I am having problems with EDE package. The "Project" menu is not showing. I have added (global-ede-mode t) to the .emacs file, but no luck. Do I need to install EDE package...

Clojure Emacs etags

I want to index clojure files, using etags so that i can use Emacs's tag functionality. But etags does not recognize clojure functions. is it possible to extend etags to include clojure definitions? ...

How to highlight source in Emacs compilation-mode when compilation error occurs

Hi, I read the documentation about compilation-mode but I didn't find any technique to hightlight source code where a compilation error occurs. For example change the background color of the source code that produces the compilation error (like the red underline in Eclipse or Netbeans). And also a way to read the error message somewhere...

emacs allout mode?

Hello, I wonder if anyone has any experience using allout mode in emacs. How would one go about defining a segment of comments (e.g., document description at the top) which would always be shown in its entirety, while the rest of the code is folded? Thank you! ...