Category Archives: Emacs

Customize face at point in Emacs

It’s probably interesting only for the hardcore Emacs users but the last CVS version of emacs (2009-12-17) get a nifty new improvement if you need to customize a face property. If you point on the text where you want to … Continue reading

Posted in Emacs | 8 Comments

Emacs transparency with mouse wheel

Emacs is playing fancy on the latest version (since emacs 23) it has now support for transparency at least on Linux when you have a composited Windows Manager. As explained on the Emacs wiki here everything is controlled by this … Continue reading

Posted in Emacs | 2 Comments

python syntax warning in emacs

One of the best feature to have with Emacs when doing python development is to have a real time syntax error/warning check highlighted in your code to avoid many errors or superfluous code. This code is taken from the brillant … Continue reading

Posted in Emacs, Python | Leave a comment

emacs daemon and Xdefaults

It does not seems that emacs started with –daemon read the .Xdefauls resource it seems that the only way setting it is by the default-frame-alist variable. I have my setup like this : (setq default-frame-alist ‘((font-backend . "xft") (font . … Continue reading

Posted in Emacs | 8 Comments

Update Emacs/VIM tags with inotify

When you use the tags interface for Emacs or with VIM you have to generate your tag file everytime you have a new class or things get changed.  Would not be cool to have inotify monitoring your project directory and … Continue reading

Posted in Emacs | 3 Comments

FFAP and Ruby in Emacs

If you want to use FFAP (find-file-at-point) in ruby-mode you can add this to your .emacs (defvar ruby-program-name "ruby") (defun ruby-module-path(module) (shell-command-to-string (concat ruby-program-name " -e " "\"ret=’()’;$LOAD_PATH.each{|p| " "x=p+’/'+ARGV[0].gsub(‘.rb’, ”)+’.rb’;" "ret=File.expand_path(x)" "if(File.exist?(x))};printf ret\" " module)))   (eval-after-load "ffap" ‘(push … Continue reading

Posted in Emacs | 2 Comments

Emacs config

To anyone interested my extensive Emacs configuration is available here : http://code.google.com/p/chmouel/source And here is the usual screen shot :

Posted in Emacs | 1 Comment

Always search before coding

This is a annoying, even if it take 5mn to code thing like that : (defun my-dired-rm-rf() "Rm -rf directories" (interactive) (let ((sel (selected-window))) (dolist (curFile (dired-get-marked-files)) (if (yes-or-no-p (concat "Do you want to remove \"" (file-name-nondirectory curFile) "\" ? … Continue reading

Posted in Emacs | Leave a comment

Emacs nighly cvs snapshot with xft on Ubuntu Edgy

I wanted to try the latest cvs snapshot with XFT support, since i did not want to screw up more my workstation i have used packages instead of make install blindy. Basically i have a script called ./build.sh #!/bin/bash set … Continue reading

Posted in Emacs | 12 Comments

Rename bunch of file via regexp

To rename bunch of files via regexp i was using before a homegrown python script call rename-regexp.py to change bunch of files with a regexp. But since then i discovered wdired which is pretty fantastic to use that from emacs. … Continue reading

Posted in Emacs | Leave a comment