emacs

Adding images/highlighting/etc to emacs buffers via markup

I want to debug data structures and/or algorithms visually in inferior buffers (mainly python and haskell, but any interpreter running in a buffer should be the same). For this I would like to have a mechanism for setting display properties, creating images via markup. For example in a python inferior buffer: <dot> digraph G {Hello->W...

Processing text with elisp

Hello, guys! Since I've converted to the Church of Emacs, I've been trying to do everything from inside it, and I was wondering how to do some text processing quickly and efficiently with it. As an example, let's take this list that I was editing some minutes ago on org-mode. ** Diego: b QI ** bruno-gil: b QI ** Koma: jo ** um: rsrs ...

Emacs rgrep customization

I have the following custom function in ~/.emacs: (defun xi-rgrep (term) (grep-compute-defaults) (interactive "sSearch Term: ") (rgrep term "*.[ch]*" "../") ) This function just runs rgrep for the term entered in the files/directories I'm interested in. However, I want to match the original rgrep functionality of having the ...

Is there any way to automatically close filename completetion buffers in Emacs?

For example, when you open a file via C-x-C-f, you can TAB complete file names, and if there are more than one possible completions, it will pop open a completion buffer with a list of possible completions. The problem is, after you've opened the file, the window the buffer was in switches back to normal, but it doesn't close. Is there a...

How do I fix a broken Lisp directory path for Emacs?

I installed a new version of emacs (new for me). I didn't want to overwrite the stock copy so I put it in a group-readable directory ~admin/sw. I point my $PATH there and I'm able to pick it up, but when I run ~admin/sw/bin/emacs I get a whole bunch of warnings and errors: Warning: arch-dependent data dir (/usr/local/libexec/emacs/23.1/...

how do i keep emacs server running when the current window is closed (x) on windows using emacsW32 ?

Hi, I'm using EmacsW32 (patched) on windows. Emacs is running in server mode so that subsequent calls to emacsclientw open files in the same server session. I have C-x C-c mapped to make the current frame invisible and not kill the emacs server process. I'd like clicking the window's X (close) button to also just hide the frame & not...

emacs: replace string using regexp

hi, suppose i have the following in a text file (or dired buffer) open in emacs: file_01.txt file_02.txt ... file_99.txt I want to query-replace or replace the files to 01_file.txt, etc. I want to use query-replace-regexp or replace-regexp, but don't know what to put in. The search part i put in "file_..", but the ".." are read as pe...

Long lines all messed up on a console application

I'm trying to use a text-to-speech engine, festival, in Windows. I found a pre-compiled binary online, so I can't really re-compile without a whole lot of effort. Here's what happens. I run the program from cmd.exe and try to see the definition for a function: festival> utt.synth #<CLOSURE (utt) (begin "(utt.synth UTT) The main ...

Emacs in the era of IDEs

I am relatively new in a software development. I have noticed that in some cases a text editor with extended text processing capabilities (I use Notepad++) gives me a better productivity than an IDE (I use the Eclipse and the Netbeans). In the era of IDEs, does it makes sense to learn emacs (or some other tool that you suggest?) ...

Emacs 23.1.50.1 hangs ramdomly for 6-8 seconds on Windows XP

I have EmacsW32 23.1.50.1 emacs working on my windows XP machine. It hangs randomly for 5 to 8 seconds and quite frustrating. Any one has solution? I even tried using emacs win32 binaries (23.1) from gnu ftp site and that also hangs for few seconds. Here some notable processmonitor logs 10:56:59.9888359 PM CreateFile C:\usr\spool\...

Suppress emacs auto-fill in a selected region

I use emacs to edit everything. On some of my LateX documents I would like to automatically disable auto-fill mode when I am editing tables and code. Basically, I'd like to have two tags, like: %%% BEGIN NO FILL %%% END NO FILL and nothing between them will be autofilled. Can anybody think of a way to do this? I would need to f...

Setting an Emacs background image

Emacs 23 just added the functionality to change the alpha value of the current frame to make it transparent. I just type the following command in .emacs: (set-frame-parameter (selected-frame) 'alpha '(85 50)) It actually shows what's on the windows behind Emacs. However, I would be interested in making an Emacs background image inste...

How can I show the Org-mode agenda on Emacs start-up?

I would like the Org-mode agenda to automatically show what I have to do today when I open Emacs. The org-agenda command is interactive, so it doesn't seem to work well for this purpose. Is there a way to show the Org-mode agenda on Emacs start-up? Thanks, Conor ...

emacs windows spell check aspell or hunspell

I use emacs 23.1.50 version on Windows XP operation system. I could not setup hunspell or aspell as part of emacs with the example provided by the emacs wiki. Anyone has working confiugration for windows xp and please help me out. ...

How to maintain an emacs-based knowledge base ?

I've been using org-mode for a little while, I've kept it really simple for now, with only two files : one to act as an inbox, with remember-mode another where I stick just about anything that's been processed from the inbox This is great for managing somewhat 'actionable' items, but I keep adding things of a more general nature, that I...

emacs newbie: How can I hide the buffer files that emacs creates?

I just started using emacs after having used vi for a long time. :) One thing which is annoying me is that whenever I modify a file, save it and exit emacs, I see a buffer file created in the same directory named filename~ (if the file I edited was "filename"). Is there any way I can get rid of this? Or hide these files? It is very anno...

Saving a todo list in Emacs org-mode removes all plain text?

I started to use the Emacs org-mode for my todo lists. However, when I save my file all plain text is removed, how do I prevent this from happening? e.g. file todo.org: thing 1 thing 2 Some regular harmless text I would prefer to keep thing 3 becomes: thing 1 thing 2 thing 3 Okay, I'm silly, I didn...

Accented characters on Emacs

Hi! When I type an accented character (eg ñ, ç, ã), it doesn't self-insert immediately, but rather displays itself on the minibuffer as if it was a prefix key (eg ç -> ç-). Is there a way to change this behavior? I can't even capture it with <f1>kç to find out what is happening. Thanks! ...

emacs windows run python program in current buffer and display the output on output window

I use the Python-mode (not the default one comes with emacs 23). I could not execute the python program currently loaded in emacs. I am getting "Symbol's function definition is void: smart-operator-mode-on" error. Any clue or any tips makes a python program and it can be run on emacs and show the result output window? Here the emacs...

How to make permament customizations in Emacs?

I was learning Vim and now I'm experimenting with Emacs. In Vim, for instance, I could hide the toolbar by adding a "set" command in the _vimrc file. How is the customization approach in Emacs, for instance, if I want to hide the toolbar? ...