all repos — website @ bc81305cabc769039a661deb246d98a84717ea63

My website

Use long form for reference links

Alan Pearce
commit

bc81305cabc769039a661deb246d98a84717ea63

parent

200b0fba3cf3e82f49bc2825d6ec1bd44ae189f1

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M content/post/opening-projects-with-projectile.mdcontent/post/opening-projects-with-projectile.md
@@ -6,11 +6,11 @@ title = "Opening Projects with Projectile"
date = 2014-07-12T09:12:34Z +++ -I use [Projectile] for working with projects in Emacs. It's really good at finding files in projects, working with source code indexes (I use [Global]), and with its [perspective] support, it's also great at separating projects into workspaces. However, I've always felt it lacking in actually opening projects. I tend to work on different projects all the time and `projectile-switch-project` only tracks projects once they've been opened initially (despite the name, it works across Emacs sessions). +I use [Projectile][] for working with projects in Emacs. It's really good at finding files in projects, working with source code indexes (I use [Global][]), and with its [perspective][] support, it's also great at separating projects into workspaces. However, I've always felt it lacking in actually opening projects. I tend to work on different projects all the time and `projectile-switch-project` only tracks projects once they've been opened initially (despite the name, it works across Emacs sessions). With this in mind, I decided to try to add support for opening projects under a given subdirectory, e.g. `~/projects`, regardless of whether or not I've visited them before. -I saw that projectile uses [Dash.el] in some places, and after reading about [anaphoric macros], I decided that I'd try to use them to aid me. +I saw that projectile uses [Dash.el][] in some places, and after reading about [anaphoric macros], I decided that I'd try to use them to aid me. {{% highlight cl %}} (defun ap/subfolder-projects (dir)
@@ -39,7 +39,7 @@ {{% /highlight %}}
By wrapping the call to `ap/subfolder-projects` in another function that takes the same directory argument, we can re-use the project parent directory and expand the selected project name into an absolute path before passing it to `projectile-switch-project-by-name`. -We get support for multiple completion systems for free, since projectile has a wrapper function that works with the default system, ido, [grizzl] and recently, [helm]. +We get support for multiple completion systems for free, since projectile has a wrapper function that works with the default system, ido, [grizzl][] and recently, [helm][]. Then I defined some helper functions to make it easy to open work and home projects.