Emacs | Random thoughts

October 15, 2017

Modules within Emacs

The pitch Do you maintain your own .emacs.d and worry that it is a single pile of complected and unmaintainable logic? Fancy a bit of spacemacs’ layers? Modules, modules and more modules for the win. Tooling This approach requires a trivially small amount of elisp and a single plugin (ivy, actually counsel, all of which is confusingly called swiper!). The code The code in its entirety (be WARNED, this is my first entry into Emacs’ lisp): ... Read more

November 10, 2016

Restricting helm and ag to certain files

ag is great and searches through your code base in the blink of an eye. Coupled with helm it makes for a great experience finding things. If run in a git project then it helpfully ignores those in your .gitignore file. However, in most projects I have files with different extensions, maybe some .md for documentation, some .html for published documentation, .clj, .cljs, .cljc, .js etc. I often know in which files the thing I am searching for lives, but I hadn’t figured out a way to restrict ag. ... Read more

September 28, 2016

Keeping project buffers tidy with projectile

Projectile is an excellent library for managing ‘projects’ (where a project is typically a git repository). Today I found a new tip - projectile-kill-buffers which effectively removes the project from your current emacs session: projectile-kill-buffers is an interactive autoloaded compiled Lisp function in ‘projectile.el’. It is bound to SPC p k, M-m p k, C-c p k, <menu-bar> <tools> <Projectile> <Kill project buffers>. (projectile-kill-buffers) Kill all project buffers. [back] It is really useful if you are toggling between multiple projects and want to finish working on one of the projects. ... Read more

© Malte Kiefer 2016