Skip to main content

C'est la Z

Tag: emacs

Using Emacs - 24 - Org Capture 2

Not much in today's actual post. The video is a continuation of the last one on org-capture. The video goes over how I set things up to pop up a new frame to do a capture even if emacs isn't on screen (as long as it's running) by hitting F1. I would have preferred to bind to C-c c - the same as within emacs but I havn't figured out how to do that in Ubuntu or Mint Linux yet.
# COMMENTS

Using Emacs - 23 - Org Capture 1

Org mode has an amazing feature - org-capture. I only started using it recently but it's really awesome. What took me so long? Probably that the manual seemed a little intimidating. It really isn't hard, though. Combined with what I'll go over in the next video and post (and a future one for Google calendar sync) it's what I use for: recording blog ideas managing bookmarks taking short Notes managing my calendar.
# COMMENTS

Using Emacs - 21 - web mode

Quick post today. The video goes over web-mode - my preferred weapon for html and all the goodies you embed in an html file. It's multi-modal so it acts sensibly regardless of wether you're editing html, css, javascript or even templates in a single file. Note: In the video, web-mode wasn't automatically inserting quotes. I had to set hte following variable to fix this: (setq web-mode-enable-auto-quoting t) Giving the final configuration I'm currently using:
# COMMENTS

Using Emacs - 22 - emacsclient

Another quick hit today. This video is really setting the stage for hte next two, where I talk about org-mode capturing. Today, we're demoing the use of the emacs server and client. Back in the old days, emacs took a LOOONG time to load. A complex conviguration could take on the order of 10 to 20 seconds. This resulted in people loading emacs at the start of the day and leaving it up forever.
# COMMENTS

Using Emacs - 20 - yanking

Today's video is a bit of a follow up on the last one as well as a few miscillaneous configuration. We got some comments on alternate ways to load a file if it exists - it's always cool to see how different people end up doing similar things. We then talk about three little configurations. Two I found out about reading Jon Sander's (jcs) blog Irreal. Jon's blog is a terrific source of emacs info - if you don't subscribe, you should.
# COMMENTS

Using Emacs - 19 - moving to a live config

Some of the videos I want to make are going to be much easier to do if I'm working in my own account where my whole file tree is available. It's also a little annoying changing between my full emacs config and the one I'm developing here. So, I decided to move to this config for my real config and as I make more videos move parts of my old configuration over to this new one.
# COMMENTS

Using Emacs - 18 - Narrowing and iedit

I meant to cover these last time but decided not to so as to keep the videos to about 10 minutes each. First up this time round is iedit - a really cool mode that lets you select all the instances of the marked selection at the same time and edit them all at once. By default it's bound to C-l. For example, let's say you had the following code:
# COMMENTS

Using Emacs - 17 - misc small packages

I'm working on getting enough of my real configuration into this series so that I can dump my current one and use this one all them time and grow it back up an episode at a time. I think we're almost there. This time, we're looking at a few small packages that I use all the time. Highlight line Mode (global-hl-line-mode t) this turns on highlight line mode. It makes it easy to see the line the cursor's on.
# COMMENTS

Using Emacs - 16 - Undo Tree

If you use emacs, you should keep an eye on Jon Snader's blog, irreal.org. A few days he posted on Undo Tree - a package that extends Emacs's built in undo functionality. Basic emacs has undo, bound to C-/ or C-_ but that's about it. Undo tree, which you can set up with: (use-package undo-tree :ensure t :init (global-undo-tree-mode)) adds two key features. First is redo, which you get by adding the shift key to the undo keychords.
# COMMENTS

User friendly - I do not think that means what you think it means

Saw this post the other day: Emacs is hurting Clojure and this response: Is Emacs Really HJard to Learn / Use. This called to mind those countless discussions about tools being user friendly. I'm frequently on the unpopular side of these discussions. Linux vs Windows vs Mac, Shell vs GUI, Emacs vs fill-in-the-blank-editor-or-IDE and on and on. Don't use Emacs, it isn't user friendly. Don't use Linux, it isn't user friendly.
# COMMENTS