Monday, November 19, 2012

Printing with Mutt




By default, when you press the p key to print a message in mutt, you will not be prompted to choose a printer. Mutt will just print to the printer defined in your PRINTER environment variable.

To change the printer mutt uses , from within mutt, type in the following:

:set print_command="/usr/bin/lp.cups"
Make sure you type in the colon first. If you do not type in the colon first, the rest of what you type will be interpreted by mutt as  commands (for example, the 's' from the word 'set' will try to save the message).

To see what your current printer command is, type in:

:set print_command
If you are using Gnome 3 and you would like to use your Default cups printer from within mutt, you can set your printer command as follows:

:set print_command="/usr/bin/lp.cups"
To make this setting permanent

edit your .muttrc file and put

set print_command="/usr/bin/lp.cups"

at the end of the file  like so

vim .muttrc
and this time without the :

set print_command="/usr/bin/lp.cups"



No comments: