Inputting TeX Characters

Ben Maughan has an excellent tip on entering non-standard characters in an Emacs buffer. Mickey had the same tip but it was hidden in a longer article.

The idea is that you switch into TeX input mode and then use the TeX code for the character. For example, if I want a lower case zeta, I merely switch into TeX input mode, type \zeta and I get ζ. If you use TeX or LaTeX a lot and are used to its diacritical support, this is a really useful way of entering characters such as Å. It’s much easier than typing 【Ctrl+x 8 Return】 and then remembering the name of the character.

The meat of the tip is that you can toggle the TeX input mode simply by typing【Ctrl+\】. You don’t have to toggle it for each special character because it looks for the \ to trigger the translation.

The mechanism is more general than just entering TeX. There are several input modes and you can specify the one you want to use by adding a prefix. Since the only input method that makes sense for me is the TeX method, I set it as the default method with

(setq default-input-method 'TeX)

Someone who uses an alternate character set (one of the Chinese sets, say) may want to make that the default method and explicitly specify the TeX input method when they need it.

Posted in General | Tagged | 1 Comment

Org Mode: The Gateway Drug

Posted in General | Tagged , | 2 Comments

Secure Chatting

Over at The Intercept, Micah Lee has an outstanding article on secure chatting. If you need to set up secure chatting with someone or if you simply want all your chats to be free from snooping by the usual Nosy Parkers, this article will tell you how to do it.

You’ll need to install Tor, a secure chat application (which one varies with your OS), and then do a bit of set up. After that, you just select someone to chat with and your conversation and the associated metadata are secure. Lee uses the metaphor of Romeo and Juliet wanting to chat so that their families can’t listen in and, perhaps more important, don’t know the chats are taking place.

There are step-by-step instructions for setting up a secure chat solution for Windows, Linux, and OS X. It also explains how to use the Android SecureChat application to set it up on an Android phone. The article says that SecureChat can not yet do Tor securely on iOS but from what I can tell from their site, that inadequacy has been remedied so that secure chat on mobile is also a possibility1.

Everyone with the slightest bit of paranoia should read this article. It’s got a lot of good advice and even if you don’t need or want it today, you may need it tomorrow. Read it and bookmark it for the time you do need it.

Footnotes:

1

There’s no indication in the article that a Windows Phone solution is available and, of course, I have no direct experience so Windows Phone users may (or may not) be out of luck. If you’re still on BlackBerry, you have bigger problems than using Tor on your phone.

Posted in General | Tagged | Leave a comment

The History of Crypto Backdoors

Matthew Green has a nice post recounting the history of government mandated backdoors. If you’re too young to remember the first round of the Crypto Wars from the 1990s, you’ll find Green’s history fascinating. Back then it was about the NSA designed Clipper chip that would allow secure communications while at the same time ensuring government access to those communications when needed.

As Green points out, the system was extremely fragile and Matt Blaze wrote a famous paper showing how the system could be defeated. For that and various other reasons the Clipper chip was abandoned and the government gave up on mandating backdoors.

More recently, we’ve had the FREAK and LogJam exploits both of which were enabled by the government’s now abandoned crypto export regulations. The point of these episodes is that trying to insert backdoors into crypto systems always has unintended consequences and introduces weaknesses.

Nonetheless, the government is back for another round and insisting loudly that the fate of the nation depends on their being able to read all our communications. The best way to read Green’s history is as a cautionary tale of what’s apt to happen if they succeed. If you have any interest in this area, be sure to read the post.

Posted in General | Tagged | Leave a comment

Function Navigation

Here’s a handy tip from Wilfred Hughes for navigation around functions:

Posted in General | Tagged | Leave a comment

Mickey on Magit 2.x

Back before the latest big upgrade, Mickey wrote a wonderful article on Magit that I covered here. Now Mickey is back with What is new in Magit 2.x. He covers the subject in more depth than Nathan Willis’ short summary that I recently wrote about.

Mickey starts off urging everyone to read the manual on upgrading. It’s not hard but there are definite steps you have to take for a successful installation. Then he moves on to what’s new in Magit 2.x.

He covers the new parts and the changes to some of the key sequences in depth. If you’ve just installed the new Magit or you’re planning on doing so, you should definitely read Mickey’s post to get your bearings. If you aren’t a Magit user, you should also read it to see why you should be. As usual for Mickey, it’s a great post and very informative. Definitely recommended.

Posted in General | Tagged , | Leave a comment

Tip: Balance Your Windows

Samuel Tonini has a handy tip for those occasions when you find yourself with lots of Emacs windows of different sizes.

I have to say, though, I’ve never understood this key binding. Wouldn’t【Ctrl+x =】make more sense? Has anyone here even used what-cursor-position interactively?

Posted in General | Tagged | 4 Comments

Put a Fork in it.

Finally, there’s a real push to get rid of one of the worst exploit vectors. Ever since Alex Stamos’ tweet calling for an end-of-life for Flash there is accelerating agreement that it’s time to kill flash.

The idea of Flash is a good one. A standard, ubiquitous app that all browsers can use to display video—sort of like PDF for video. It makes it easier on content providers, browser manufacturers, and users. Sadly, Flash is so riddled with security holes that it’s unusable. Anyone with a clue has long since disabled it. I stopped using it over a year ago and probably waited too long.

Even though I seldom notice it’s no longer installed, I occasionally run across some video that I would like to watch but that is available only in Flash. I just move on but maybe an official end-of-life for Flash will get content providers to stop publishing in it. We’ll all be better off for it.

Posted in General | Tagged | Leave a comment

Org Mode Cookbook

I’ve written about this before but it bears repeating

Posted in General | Tagged , | Leave a comment

Org Returns

Org mode can be a sort of odd beast when you’re editing in one of its buffers. That’s because even though it’s plain text it’s also providing a way of structuring text. Grant Rettke takes note of this fact and shows that there are four types of RETURN in Org mode.

For example, if you’re working with a list, sometimes you want to start a new list item. Other times, you want to continue a current list item on the next line but with the correct indentation. There are a couple of other similar actions that you might want to tie to【Return】 as well.

Rettke binds each of the 【Return】 types to a key sequence that ends with 【Return】. If, like me, you do a lot of writing in Org mode, this can be a big time saver. Check out Rettke’s post for the details.

Posted in General | Tagged , | Leave a comment