Ads by Google

Monday, November 28, 2011

Gnus Tip: Customising the position of point when replying

If you have a need to top post or inline or below the mail depending on whom and where you're replying to, Gnus allows you to customise it by setting message-cite-reply-position whose doc string is reproduced below

message-cite-reply-position is a variable defined in `message.el'.
Its value is traditional
Documentation:
*Where the reply should be positioned.
If `traditional', reply inline.
If `above', reply above quoted text.
If `below', reply below quoted text.
Note: Many newsgroups frown upon nontraditional reply styles. You
probably want to set this variable only for specific groups,
e.g. using `gnus-posting-styles':

  (eval (set (make-local-variable 'message-cite-reply-above) 'above))

I've highlighted the warning just in case you missed it. :-)

Hat tip to Eric Abrahamsen's reply to a poster.  And in his post, you can see an example customisation of gnus-posting-styles to do group specific behaviour of reply.

Friday, November 4, 2011

VimOrganizer, an Org-mode clone in Vim

I seemed to have missed this announcement.  For vim users, apparently, there is a way of using vim with org-mode.  The good news is that you use vim, the bad news is that it does use Emacs at the backend to work on the files. :-)

The relevant links are
An intro to some of the stuff in the new version is here:
https://github.com/hsitz/VimOrganizer/blob/master/intro.txt
Git page is here:
https://github.com/hsitz/VimOrganizer

And the page on Vim's website is here:
http://www.vim.org/scripts/script.php?script_id=3342

Wednesday, November 2, 2011

Tuesday, November 1, 2011

It's these little things....in Emacs

You know why I continue to use emacs?  It's those little things that DTRT.  So, here I am looking at some octave code and trying to look at a function definition in another file.

% Randomly select 100 data points to display
rand_indices = randperm(m);
sel = X(rand_indices(1:100), :);

displayData(sel);
^Point is here
fprintf('Program paused. Press enter to continue.\n');
pause;


Any other editor, I'd have to do one or the other; Go to File-->Open.... or switch to Explorer view and open the file by double clicking on it.

In Emacs, I just do M-x ffap at point and it simply prompts me with the completed file name and waits for me to hit RET.

Awesome.