Archive Page 4

[BEH] How to display info help inside a box

That ASCII-art box is great for many things, specially when used to describe a function, variable or key. The necesary package is boxquote. And to have all its power at your fingertips, a snippet for your .emacs

(require 'boxquote)

(global-set-key (kbd "C-c b y")   'boxquote-yank)
(global-set-key (kbd "C-c b r")   'boxquote-region)
(global-set-key (kbd "C-c b u")   'boxquote-unbox-region)
(global-set-key (kbd "C-c b t")   'boxquote-title)
(global-set-key (kbd "C-c b i")   'boxquote-insert-file)
(global-set-key (kbd "C-c b k")   'boxquote-kill)
(global-set-key (kbd "C-c b s")   'boxquote-shell-command)

(global-set-key (kbd "C-c b b")   'boxquote-buffer)
(global-set-key (kbd "C-c b p")   'boxquote-paragraph)
(global-set-key (kbd "C-c b n")   'boxquote-narrow-to-boxquote)

(global-set-key (kbd "C-c b w")   'boxquote-where-is)
(global-set-key (kbd "C-c b d f") 'boxquote-describe-function)
(global-set-key (kbd "C-c b d k") 'boxquote-describe-key)
(global-set-key (kbd "C-c b d v") 'boxquote-describe-variable)

gmail-sentinel 0.2 RC

A quick update. I missed the schedule by some days, but here is the release candidate for the 0.2 version.

  • Fixed bug #4
  • New TODO file, with ideas for new features. If you want to help and don’t know where to start this is for you

Grab it while it’s hot!

BEH: eshell and su

With this entry a new category for emacs related posts will begin here. Bits from emacs.help are tips and tricks found while reading the emacs.help mailing list

Well, this tips is how to use su inside eshell

From the post: “…Doing su or sudo su does not work like you expect. This works under the normal shell (M-x shell). I am su:ing quite much …” If you have tried, using su inside eshell is quite paintful, and doesn’t work very well. But, come on, there should be a way of doing it, right?

From the reply: “…Tramp 2.1 supports it. Try “cd/sudo::” in eshell…” And that’s it! you have a fully functional ’suded’ eshell with completition available.

A quick note: eshell alias

Update: while reading this wiki entry I found that you need to quote your alias only if you are writing it directly on the prompt. On the alias file you don’t quote anything. In fact, you don’t need to modify the alias file by hand because emacs writes it for any alias you define on the prompt.

(This is mostly a personal note but it may be useful to somebody else)

I’m not sure that everybody knows (the manual version I have doesn’t mencion it) but to configure an alias for eshell is as easy as this:

On the .eshell/alias file just add

alias ls ls -la $*

This is a taken from this blog post. You can read there a more lispy way of doing it.

Also, take a look at this interesting this wiki entry

Ekiga finally working

I’ve been trying to make ekiga work on my laptop, using pulseaudio and the internal mics for months without success. Today, while procrastinating after lunch, I finally make it work.

My laptop is a Thinkpad T61, and my first problem was that I couldn’t make ekiga recognize any input from my internal mics, but I found this page with a step-by-step process on how to make it work:

1. do 'alsamixer -Va' and set the microphone to capture and unmute it.
2. get out of there, then go ahead and do 'alsamixer -c 0 -V capture'
3. make sure it's set to record from internal, make sure that both channels from mic are set to capture
4. press space bar on the capture to enable capturing
5. now test if it works by recording your voice by 'arecord test.wav' --speak-- Ctrl-C, then play it with 'aplay test.wav'

On the original post the record was set to mic but I set it to internal. To get ekiga to recognize the input I changed all the devices from default to Intel HDA.

If you don’t know why ekiga is great, read this blog post, in a nutshell ekiga gives you a communication based on open standards, different options on VoIP providers, and a regular phone number for free :)

Hope this helps somebody with a similar problem.