Spacemacs | Random thoughts

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