Ads by Google

Sunday, September 16, 2012

Laptops Keyboards: A Rant

Is there no science to the keyboard layout at all for laptops? Wait, drop that, how about a standard layout bereft of any science? How on earth is it possible to change the layout of the keys on laptops a bazillion ways?  How?  More importantly, why?

I had a Lenovo T60 and when it gave up the ghost, I switched to a L420 where the blooming keyboard has the all important keys of  DEL,PgUp/Dn, among other things,  in a different location. Already, I miss the nifty reading light on the screen that I used to have on the T60 and this misaligned keys simply winds me up no end.

I seem to be paging by the screenful because someone has 'helpfully' decided the page up key should be next to the arrow keys.  How nice; how very, very considerate to an average typist like me.  In hindsight, it was worth my time, that I did NOT spend too much time learning to type with gtypist.  What a nightmare!

When I trudge into a Electronics shop and look at the models from other vendors....well, there's no hope there too. Even within the same model line by each maker, the layout changes. So much for HCI classes for the designers.  The laptops look gorgeous, the keys are the new fancy tactile/shactile stuff, plastic/metal/kryptonite crap, yeah I get all that.  You know what?  I would settle for wooden keys, if they simply left the keyboard alone.

Why is the Enter key so huge in one model and is an almost forgotten piece of plastic tucked away in one corner in another model by the SAME maker?  Why are there gaps between the keys in some models and none in another model of the same size?  Why do some keyboards have keys made of eraser material while others have to be hammered by your fingers to see something on the screen?  What, this is supposed to work like a manual typewriter?  Clack, clack,zing.

I dunno what the designers are mixing in their drinking water; whatever it is, they should stop it.  This is pretty annoying and aggravating for trying to get work done.  It really is a good thing, that I know a bit of Emacs. I don't use these keys that much in it; C-d and C-k do come in handy as do C-v and M-v.

Thursday, September 13, 2012

Tuesday, August 28, 2012

Sunday, July 22, 2012

Emacs Stuff you ought to know

You know hippie expand, that's the Emacs poor man auto-completion? One of the pet peeves of it, is that you tend to overshoot the completions from the one expansion that you want.  But Emacs cycles through the list again and again, anyway.  And if you have a large list of possible completions, it's a long way off to get back to the correct expansion.

At least one person was unhappy enough to ask on the Emacs mailing list about  hippie-expand/dabbrev-expand and the simple answer was to use the Emacs undo command C-x u or C-_ .  And that really is the simplest way to back up to the previous expansion when you just managed to overshoot the one you wanted.

If you were looking for information on how to search your emails using Gnus, the thread How to search a recently read mail would be a good idea to peruse especially Tassilo's post on Gnus IMAP search.


And if you were wondering why people use Gnus as a mail client because it does simple things like this, which I believe is a standard feature in all other email clients?  I reproduce the post in full, just in case you want to know how backward Gnus is.   :-)

I just had to email someone a file that was located on a USB drivemounted on computer in another room. I composed my gnus message, hit 'C-c C-a', located the file with tramp, the proper mml tags were inserted complete with "ssh" in the filename, and message and attachment went without a hitch. Very nice!


So there!

Wednesday, July 18, 2012

TeXLive 2012 available on Cygwin

It appears that the TeXLive 2012 is now available as an updated package on cygwin.  Please read the instructions in the announcement to choose the correct package sets when using the cygwin installer.

Saturday, July 14, 2012

Hobson-Jobson: The words English owes to India

I found this BBC article on Indian words in English absolutely fascinating as well as a bit eccentric. I like it that, some words are pretty mainstream and some are not in use today and some too unbelievable at first!

This trivia is not related to Emacs in any way.

Monday, July 9, 2012

Interesting Emacs linkfest

Just so you know, that I'm snowed under again and it's criminal not to share my blog laziness with all and sundry.

Another Emacs mail client/backend choice discussion that crops up regularly in gnu.emacs.help.  If you haven't made up your mind, this won't help either but it sure helps in being more indecisive.  I dunno.

Running up and down your C code while coding and want a better way to track and come back to where you last coded?  Well, C K Kashyap seems to miss his vi keys and whaddya know?  Emacs has some key bindings for that and more as you can see in the thread 'Tips for quick jumping back and forth'.  Take a look for various productivity tips.

John Wiegley has been doing some wonderful stuff that might help people who are annoyed that Emacs hangs for 1.5 nano/micro/milli seconds before resuming when sending out mail messages or calling unknown executables instead of writing elisp functions to do the right thing(TM).  So he's gone ahead and posted async.el, followed  by dired-async and again followed by smtpmail-async. He's using the new fangled github so all those of you clever enough to speak git, check it out.

Seeing so much stuff, yours truly went ahead and asked whether this feature,async, is going to be part of Emacs main and the man actually responded to my email! Amazing.  For those chaps who thought Emacs Developers don't respond to feedback....tphthhp.   I kid, I kid.  (I should add, that all the Emacs-Devel people I have contacted, have responded to me or to the list whenever I contacted them).

John apparently never sleeps.  When the whole world is turning into Big Brother, you are encouraged to rat out yourself (and others) by tracking all the email addresses you send and store them, for later....beatings prolly?  Err...he's written gnus-harvest that needs sqlite to store all the email addresses compared to .mailrc or BBDB.

And I just noticed that Texlive 2012 is now available, thanks to this texlive post in comp.text.tex


That's it as I head back to my cave.

Wednesday, June 20, 2012

Numbering Lines and lists in Emacs

I'm not talking about Line Numbering as we usually understand it but more along the lines of numbering lists or text inside the file buffer and which are part of the file. err...best to use the wiki definition again;NumberLines

In Emacs 24.1, the NEWS file had this new addition to the rectangle commands.


** New command `C-x r N' (`rectangle-number-lines') numbers the lines in the current rectangle.  With a prefix argument, this prompts for a number to count from and for a format string.



This allows you to now number lines or lists easily instead of using a macro or additional elisp functions.  Mark a vertical region of text(using transient mark mode may help) 1 character wide and then hit C-x r N and that's it.  It numbers the line.

If you use the prefix command C-u and do C-u C-x r N, it will prompt you for a starting digit and the format string, so you can start from 15, say.

Things do get better with Emacs!

Monday, June 18, 2012

June TUG News

I saw this post on comp.text.tex and found a few interesting tidbits that people might be interested in, especially Knuth.



- Donald E. Knuth reports that a new, corrected reprint of Digital 
  Typography is now available. He writes, "I must say that I'm enormously 
  happy to hold it in my hands, because hundreds of things that readers 
  pointed out in the first printing have now been corrected." The best way 
  to ensure that you get the new, corrected printing is to order from the 
  publisher. 
  http://cslipublications.stanford.edu/site/1575860104.shtml




- As mentioned in the last newsletter, new corrected printings of Computers
  and Typesetting are also available. Knuth writes "...the books themselves 
  are significantly better in hundreds of small ways. I went through every 
  page very carefully and introduced many refinements, which have made me 
  extremely happy with the result. I'm now able to replace my personal desk 
  copies, in which hundreds of handwritten notes had been scrawled since the 
  Millennium edition came out, by fresh versions that are essentially 
  perfect (as far as I know). This is especially true of Volume B, because  
  important updates to the TeX software that were made in 2002 and 2007 have 
  never before been available in print." See the section entitled Spiffy New 
  Printings at
  http://www-cs-faculty.stanford.edu/~knuth/abcde.html




- TeX Live '12 is now frozen (svn revision 26895). Public release will occur 
  in a couple of weeks, and DVD will follow soon thereafter.
  http://tug.org/texlive/pretest.html
 



Saturday, June 16, 2012

Bookmarking in Emacs

This little feature in Emacs should be among the first things you should learn when you're trying out Emacs.

The thing is, you have to consciously keep at it for sometime before you start using it in a fashion that suits your workflow. In fact, I didn't use bookmarks at all for quite a few years; doing the same C-x d, scrolling to a folder, repeat scrolling till I reached my usual nested directory.  If you're doing something repetitively, it's a good bet to check out the manual about it or ask in the Emacs mailing list, someone's been through your pain before.

Anyways, if you want to bookmark a location(think man, info pages, specific directories), hit C-x r m and it will prompt you for a name.  Give one and you're set. C-x r b will give a promptable(tab completable) list that you type in to jump to the specific directory or file location.  The bookmarks can be saved for the next sessions by issuing a M-x bookmark-save.

That's all there is to it and you'll soon find it nifty when you're working on a coding project with large number of folders and files. People get lost in the humongous manual and this is the quickest way to get back to where you were when trying out things in the scratch buffer.

This thread might be useful for some and there are some improvements to it which can be found in the Emacswiki bookmarks link.