Pages

Monday, August 31, 2009

Aspell causing emacs to hang



The following helped ...



(setq-default ispell-extra-args '("--sug-mode=ultra"))


Monday, August 24, 2009

emacs, gnus and mailto url from firefox on linux

I finally got mailto working properly with Gnus posting styles by tweaking some other solutions. Documented here.

company mode : emacs auto completion

I have recently cleaned up my programming elisp files and have got company-mode working again. It is truly excellent. check out the settings here.

Tuesday, August 18, 2009

emacs-fu: navigating through source code using tags

emacs-fu: navigating through source code using tags

I'm not sure that GLOBAL is a good thing. etags seems a lot better AND works with elisp. Combine it with etags tables. Having said that, the tags code navigation/completion situation in emacs is such a mess and so full of "almost ready" solutions one has to wonder what does what these days.

blogging with fixed url





(define-key mode-specific-map [?B] 'rgr/blog)

(defun rgr/blog ()
(interactive)
(if current-prefix-arg
(progn
(let ((url(read-from-minibuffer "Post URL:")))
(gblogger-new-entry url)))
(gblogger-new-entry rgr/gblogger-post-url)
))


Compositing and transparent emacs with xmonad


Read here for the emacs code
: Emacs-fu and making emacs transparent,
and here for the xmonad part : XMonad Compositing


Monday, August 17, 2009

gpg-agent for caching key passwords with gpg-agent



What a palava. A hundred readmes and howtos explaining how to run
gpg-agent in Linux for caching with the Emacs epa libraries and low
and behold it's already done in /etc/X11/Xsession.d/90gpg-agent. Aargh. Also in my .gnupg/gpg-agent.conf the gtk2 pin reader does not work. Has to be X11. Dont ask me why.



Addendum : I'm an idiot. It should be "pinentry-gtk-2". Works now!

Remember where you are in Emacs files.

Thursday, August 13, 2009

How to use g-client from emacs for blogger.com blogs


Download Source


g-client package

Unarchive, add to your path in emacs, open a terminal, cd to that
directory and run make config


Understanding how to use it


The key is to set your g-user-mail to your googlemail
ID..e.g



(setq g-user-email "rileyrgdev@gmail.com")

and then you run gblogger-blog to log in and view your
blogs. Then comes the not so tricky bit. Put your cursor over the
"post" link for the blog you are interested (you should be using W3M by the way!) in and then hit "u" in W3m to copy the POST URL to the clipboard. Having done that, simply run gblogger-new-entry and paste in that POST URL. The rest is all down to you and your favorite nxml emacs editor .... And google of course :-;

Another test with embedded html tags





http://purl.org/net/emacs-gblogger/
shamrock
Another test using nxml editor


Title test from g-client









Another test using nxml editor



Title test from g-client



(autoload 'ipa-insert "ipa")
(define-key mode-specific-map [?A] 'ipa-insert)
(define-key mode-specific-map [?b] 'gblogger-blog)
(define-key mode-specific-map [?B] 'gblogger-new-entry)
(define-key mode-specific-map [?W] 'w3m-bookmark-view)


another test from g-client



Hello from g-client!


Blog client broken

My gblogger client from emacs has broken. I am trying something called g-client but can't get it to work! Damn. Just as I was reinvigorated and was going to post a long article about the dangers of pinning and sucking in unstable code into a Debian Lenny set up (Yeah, I know what "unstable" means...).