Skip to main content

C'est la Z

Tag: emacs

Using Emacs - 34 - ibuffer and emmet

A couple of quick, unrelated packages today. first up, ibuffer. If you keep Emacs open all the time, you'll start to accumulate buffers. Last time, I talked about using projectile and how that can help when navigating between buffers. IBuffer is another one. Out of the box, C-x C-b is bound to the Emacs list-buffers command. It brings up a buffer with all the buffers listed inside it. You can navigate that buffer and hit enter on a particular buffer to go to it.
# COMMENTS

Using Emacs - 33 - projectile, dumb-jump

If you keep Emacs open all the time you end up accumulating lots of buffers. That can make navigating a little bit awkward. Projectile is a really nice package that makes navigating in and between projects much easier. I also have counsel-projectile installed. Here's my configuration: ;; projectile (use-package projectile :ensure t :config (projectile-global-mode) (setq projectile-completion-system 'ivy)) (use-package counsel-projectile :ensure t :config (counsel-projectile-on)) Projectile considers a sub-directory tree to be a project if it's a git or other source control repo, if it's created by tool like lein, maven, or sbt, or if you put an empty file named .
# COMMENTS

Using Emacs - 32 - C++

This video is specifically for my students or any students out there who are starting with C++ and emacs. The videos also longer than usual, coming in at a little over 20 minutes. The big difference is instead of building on my existing config, the code at the bottom is a complete standalone configuration. It's all pulled from the main config with one additional package. By taking the code at the bottom and putting in into a file named init.
# COMMENTS

Using Emacs - 31 - elfeed part 3 - macros

In part 2 I talked about how I used Hyrdas to quickly navigate through elfeed tags. It was a nice step up but the fact that I still had to manually edit my configuration code for every new tag to update the hydra was a problem. Basically, I had to somehow or other, take a list of all the active tags and with it build a defhydra command that will then make my Hydra.
# COMMENTS

Using Emacs - 30 - elfeed part 2 - Hydras

In part 1, I talked about elfeed, a really awesome feed reader for emacs. Generally, I'm really liking it but there's been one problem - not being able to navigate quickly between groups of feeds with a keystroke or two. It's emacs so there has to be a solution. Enter hydra - a terrific emacs package from the same guy who brought us swiper, another one of my favorite emacs packages.
# COMMENTS

Using Emacs - 29 -elfeed part 1

Since the demise of Google Reader, I've been using Feedly to read my streams. Feedly's a nice product and it's been working well for me for quite some time. A few days ago, I decided to see what emacs had to offer on the feed reader front. One solution was Gnus but then I've never been able to get my head around Gnus. Another was elfeed. I thought I'd give elfeed a go.
# COMMENTS

Using Emacs - 28 -Rectangles

One of my favorite but little used emacs features is rectangular editing. It's little used because I don't need it all that often. It's one of my favorites because when I do need it, it's just so amazingly useful. The idea is you can mark a rectangle of text, cut it and later paste it. This means that if you have three columns of text: a b c d e f g h i j k l You can easily mark the middle column (b e h k) or even just the b e and h, cut it and paste it elsewhere as a rectangle.
# COMMENTS

Using Emacs - 27 - shell and eshell

While I use emacs for all all sorts of things, one of the things I haven't done much is run shells from within emacs. I'm not sure why. I'm a command line wonk and adding command line goodness and emacs together seems like a natural. Maybe it's because back in the day I spent a lot of time on MS-DOS systems. You could get a reasonable Unixy facsimile using tools like the MKS toolkit and I like so many other young computer scientists wrote our own small shells when we learned C so I used that insted of command.
# COMMENTS

Using Emacs - 26 - Google Calendar, Org Agenda

A while ago I did a couple of videos on how I use org-capture (part 1, part 2). I didn't get into a big part of org-capture - how I use org-mode and capture to manage my calendar and todo lists. I was waiting to see if I liked my current setup - using org-gcal to sync with my Google Calendar for appointments while using my main org file for my todo list.
# COMMENTS

Using Emacs - 25 - Tramp

Today's video talks about using emacs Tramp mode. Tramp mode allows you to edit remote files using your local emacs. I usually do this over ssh. To edit a file on a machine www.cstuy.org I would first find-file using C-c C-f and then for the file name to open: /ssh:www.cstuy.org:/home/zamansky/sc/testfile this would open the file testfile in the absolute directory /home/zamansky/sc. If my username on the remote machine is different:
# COMMENTS