Posted in 22 December, 2009 ¬ 16:58h.chmouel
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 customize it will detect it automatically which face point you are on and ask you if [...]
Read the rest of this entry »
Posted in 16 September, 2009 ¬ 03:52h.chmouel
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 frame parameter like this :
(set-frame-parameter (selected-frame) ‘alpha ‘(85 50))
I have automated the thing to allow [...]
Read the rest of this entry »
Posted in 31 August, 2009 ¬ 06:04h.chmouel
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 Emacswiki python page.
You need to install pyflakes first which should be available on your linux distro [...]
Read the rest of this entry »
Posted in 11 August, 2009 ¬ 10:27h.chmouel
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")
[...]
Read the rest of this entry »
Posted in 3 July, 2009 ¬ 19:12h.chmouel
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 run the etags command to generate it.
With incron you have cron that can watch some [...]
Read the rest of this entry »
Posted in 4 May, 2008 ¬ 20:13h.chmouel
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’;"
[...]
Read the rest of this entry »
Posted in 7 September, 2007 ¬ 01:57h.chmouel
To anyone interested my extensive Emacs configuration is available here :
http://code.google.com/p/chmouel/source
And here is the usual screen shot :
Read the rest of this entry »
Posted in 11 February, 2007 ¬ 05:47h.chmouel
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) "\" ? "))
(progn
(shell-command (concat "rm -rvf " curFile)
"*Removing Directories*")
(kill-buffer "*Removing Directories*")
(select-window sel)
(revert-buffer)
)
))
))
you [...]
Read the rest of this entry »
Posted in 21 January, 2007 ¬ 06:32h.chmouel
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 -e
d=$(date ‘+%Y%m%d’)
debpatch=20061218-1
mkdir -p cvs
pushd cvs >/dev/null && {
cvs -Q -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co -r emacs-unicode-2 emacs
} && popd >/dev/null
mkdir [...]
Read the rest of this entry »
Posted in 6 January, 2007 ¬ 20:48h.chmouel
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. With the extended “query-replace-regexp“ from Emacs22 stuff are much easier to rename.
Read the rest of this entry »