emacs

How to I remap the Emacs command M-d into the macro M-b, M-d?

I would like the "delete to end of word" command to delete the word, regardless of cursor position. ...

emacs23 pops up debugger way too frequently

Since I've upgraded to Ubuntu lucid and emacs23, Emacs pops up the debugger in situations, where emacs22 does not. For example, when hitting C-c C-c in org-mode, emacs22 simply states can do nothing useful at this location, whereas in emacs23 the debugger shows up. Debugger entered--Lisp error: (error "C-c C-c can do nothing useful at...

Emacs with CEDET changes copy/paste to include trailing spaces?

I just started trying out CEDET today, which I really like, but it seems to do something completely worthless with respect to copying/pasting. If I highlight some stuff and copy it, when it gets pasted back the newlines are eliminated and there is just a ton of trailing whitespace on each line. This is really worthless. All I have in ...

best way to change defconst value for a particular session? (emacs)

Hi, I want to change the value of (defconst org-time-stamp-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a %H:%M>") "Formats for `format-time-string' which are used for time stamps. It is not recommended to change this constant.") to '("<%Y-%m-%d %a>" . "<%H:%M>") Not always, but for particular org-mode sessions, even while knowing t...

Flymake quits right ahead after loading with js2-mode

When opening .js files, js2-mode and, subsequently, flymake-js is automatically loaded. But flymake unloads right ahead with the message Toggling flymake-mode off; better pass an explicit argument. However, when enabling it manually, using M-x flymake-mode, it keeps activated. Has anybody encountered similar behavior and has fixed...

Getting Windows 7 SUA's bash shell working with emacs (EmacsW32)?

Having recently purchased Windows 7 Ultimate in order to gain access to the SUA - http://www.suacommunity.com - subsystem, I have been struggling to get SUA's bash utility (/usr/local/bin/bash) working with EmacsW32. SUA comes with ksh and csh by default, so I installed a community bundle to obtain the bash process. M-x shell normally ...

Emacs setup for rails development in Ubuntu?

Hi all, I am a seasoned .net developer and using VS.net all the time. Now, I would like to learn Ruby on Rails using Emacs. Since I'm pretty new to Linux, it would be great if someone show me step by step tutorial to setup emacs for RoR develpment. ...

GNU/Emacs for gtk+ programming

Hello, I want to start C/gtk+ programming in GNU/Emacs. Where can i find manual, how to configure GNU/Emacs for C and gtk+ programming. I want to make GNU/Emacs IDE for gtk+ programming Thank you. ...

How can I tweak this elisp function to distinguish between C-d & DEL?

Here's my current function (blindly copy-pasted from a website) (defun tweakemacs-delete-one-line () "Delete current line." (interactive) (beginning-of-line) (kill-line) (kill-line)) (global-set-key (kbd "C-d") 'tweakemacs-delete-one-line) There are two quirks here that I want to get rid of. 1) This actually rebinds DEL to t...

nxhtml and geben: debug mode stops responding to keystrokes upon step into html/php mixed line

I'm using the php debugger geben and nxhtml-mode. While debugging, as soon as I step into a mixed line such as <foo><?php bar(); ?></foo> the debugger is no longer accepting any key-strokes. However, the mode line still indicates the debugger's presence (*debugging*'-entry). I guess this due to nxhtml's mode changes, because it's ...

Geben for emacs on Ubuntu 10.04

I've had geben running perfectly on previous versions of Ubuntu. After the upgrade, and installing the latest version of geben (0.26), it only half works. Specifically, when in context mode, local variables are always marked as undefined. Has anybody successfully gotten geben up and running under Ubuntu 10.04, or is this a bug in geben ...

Good code highlighting, syntax analysis and code assist editor on js.erb and css.erb files

I want to know if there is an api that supports nicely eRuby (erb) and JavaScript highlighting, sintax analysis and code assist. I've already tried Eclipse with Aptana RadRails. Perhaps I'm configuring something wrong, but it guesses that I'm using html.erb on both css.erb and js.erb files. Tried in both windows and linux (Fedora 12). ...

idomatic batch processing of text in emacs?

In python, you might do something like fout = open('out','w') fin = open('in') for line in fin: fout.write(process(line)+"\n") fin.close() fout.close() (I think it would be similar in many other languages as well). In emacs lisp, would you do something like (find-file 'out') (setq fout (current-buffer) (find-file 'in') (setq fin ...

Let emacs choose mode conditionally when opening files

I use the php debugger geben and nxhtml-mode -- my standard mode for editing php files. Unfortunately, these two modes don't mix well. Is it possible to configure emacs such a way that it enables nxhtml only conditionaly, when I open php files manually, but enables php-mode instead when the buffer is opened by geben? ...

emacs/Python: running python-shell in line buffered vs. block buffered mode

Hi all - In a related question and answer here, someone hypothesized that python-shell within emacs(23.2) was block-buffered instead of line-buffered. The recommended fix was to add sys.stdout.flush() to the spot in my script where I want stdio to flush its contents to the python-shell. Is there someway to trick python-shell (running i...

Debugging in emacs (with gud) often results in stack overflow error

Hi, I'm getting this message in emacs when debugging: error in process filter: gdb-stack-list-locals-handler: Stack overflow in regexp matcher error in process filter: Stack overflow in regexp matcher I then have to kill gdb and restart the debugging session. Any ideas? ...

How do I merge branches with Magit using a new commit object?

I can’t seem to get my merges intact with Magit for Emacs without squashing them into the current branch consistently. Sometimes a new commit object is created after the merge (which is what I want), sometimes commits are squashed. I basically just want to do 'git merge --no-ff topicbranch' in Magit. So how do I enforce the --no-ff fla...

Whats the best Find in File mode for EMACS?

Whats the best package for finding a string in multiple files in EMACS. I know about grep and such but I would like something that is a little smoother to operate. ...

How can I start emacs with one process in the top window and another in the lower window of a frame.

I have some processes that run from functions, i.e.: M-x run-proc1 M-x run-proc2 I would like to know what command to issue from the command line to run emacs with run-proc1 running in the upper window and run-proc2 running in the lower window. Thanks! ...

In Emacs, how can I see which slime version is being used?

I just upgraded my slime using elpa in Emacs. But I wonder if things are like they should be now, because when I removed the old version using elpa, it complained it could not remove a certain folder. So, when I start up Emacs (I know, I shouldn't have closed it), how I can see which slime version actually gets used? Is there a command l...