My Opinions

(C) Roberto Di Cosmo: sauf si autrement indiqué, ce contenu est régi par les termes de la LLDD, version 1

samedi 26 novembre 2011

Tales from the Mancoosi frontline: experimenting with apt-get from experimental :-)

I wanted to install libreoffice today. To do so, I first tried using apt-get (Version: 0.8.14.1), and it proposes me a solution with the following characteristics:

338 upgraded, 181 newly installed, 81 to remove and 1880 not upgraded.

You can find the full solution, as well as the data to reproduce this upgrade scenario online at the Mancoosi Debian DUDF repository.

I was not satisfied, because I just wanted to upgrade libreoffice, not the whole system!

Lire la suite

jeudi 3 novembre 2011

Mutt+emacs

You can combine mutt and (x)emacs quite conveniently, in case you happen to use this combination of tools to send your mail.

UTF-8

First, let's make sure UTF-8 is used by both (to avoir horrible accent mis-rendering) by putting something like this in your .emacs/.xemacs init files

(setq locale-coding-system 'utf-8)
(prefer-coding-system 'utf-8)

It may even help to add this

(when (not (string= (getenv "LC_CHARMAP") "UTF-8"))
  (setenv "LC_CTYPE" "en_US.UTF-8")
  (setenv "LC_CHARMAP" "UTF-8"))
mutt mode

Then, download mutt.el as available for example from http://www.lemis.com/grog/programs/emacs/emacs/mutt.el and change the pattern for mutt buffers to read

(defcustom mutt-file-pattern "mutt-a-z+-0-9a-f+-0-9a-f+-0-9a-f+"
  "*Regular expression which matches Mutt's temporary files."
  :type 'string
  :group 'mutt)

Put the modified mutt.el it in your emacs/xemacs load path, and make sure your load it by puttin

(require 'mutt)

in your init files.

gnuserv

To avoid relaunching (x)emacs each time you write a message, it is better to turn your emacs into a server process; for this, add these two lines in your init files

(require 'gnuserv)
(gnuserv-start)
mutt

Now, tell mutt to use (x)emacs as a mail client by adding this line in your .muttrc:

set editor="gnuclient"

And that's it.... every time you send a message, you will be in a mutt-mode that has nice commands like

C-c tab		mutt-goto-signature 
C-c C-a		mutt-attach-file
C-c C-b		mutt-goto-body
C-c C-i		mutt-goto-signature
C-c C-d C-c	mutt-delete-old-citations
C-c C-d C-s	mutt-delete-quoted-signatures

Just remember to exit the (x)emacs buffer using C-c #

Flattr Roberto's work photo