From eab92f65759d4f95c43b3ec9efd93df72f3a29d1 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 6 Jun 2017 15:15:08 +0200 Subject: Emacs: Add completion for yarn-run command --- emacs/.emacs.d/init.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index ff3ca5e..acc92fc 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -564,7 +564,8 @@ based upon some folder conventions I use. (cmd-to-echo "yarn" (concat "add " package)))) (defun yarn-run (cmd) - (interactive "scommand: ") + (interactive (list + (projectile-completing-read "command: " (alist-get 'scripts (json-read-file (expand-file-name "package.json" (projectile-project-root))))))) (projectile-with-default-dir (projectile-project-root) (cmd-to-echo "yarn" (concat "run " cmd)))) -- cgit 1.4.1 From 96a78bc25bf55e8f55d113b09e8de59b5b94e8b3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 6 Jun 2017 15:15:27 +0200 Subject: Emacs: Be explicitly positive when enabling projectile-mode --- emacs/.emacs.d/init.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index acc92fc..456b99f 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -545,7 +545,7 @@ based upon some folder conventions I use. :demand t :diminish projectile-mode :config (progn - (projectile-mode 1) + (projectile-mode +1) (add-to-list 'projectile-globally-ignored-directories ".stversions") (defun yarn-install (&optional arg) -- cgit 1.4.1 From 092cf6177b2214d9cd3df63a8398366f6ac7a531 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 6 Jun 2017 15:15:43 +0200 Subject: Emacs: Update projectile commentary --- emacs/.emacs.d/init.org | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 456b99f..124fa15 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -532,8 +532,7 @@ Step over Silver Search, here comes a new challenger. ** Projectile Projectile is awesome for working in projects, especially VCS-backed -ones. I added a couple of functions to allow me to open new projects -based upon some folder conventions I use. +ones. #+BEGIN_SRC emacs-lisp (use-package projectile -- cgit 1.4.1 From 272f3c8e6e368ac5abccc4a54ddbfc6b1de85f89 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 7 Jun 2017 17:16:12 +0200 Subject: Emacs: Fix projectile initialisation projectile-mode does not enable projectile in all buffers. projectile-global-mode is deprecated as a _command_. It is necessary to use the function for the global behaviour. --- emacs/.emacs.d/init.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 124fa15..745bba8 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -544,7 +544,7 @@ ones. :demand t :diminish projectile-mode :config (progn - (projectile-mode +1) + (projectile-global-mode +1) (add-to-list 'projectile-globally-ignored-directories ".stversions") (defun yarn-install (&optional arg) -- cgit 1.4.1 From 02a125e944e62ce9c4fe8a0b34e7d973a6ca46f9 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 8 Jun 2017 12:12:36 +0200 Subject: stow: Disable tree-folding Create new directories as directories when installing a package set, rather than "optimising" by linking the parent directory. e.g. .emacs.d on a new system. It should always be a directory, as emacs stores files there that are not for the consideration of stow. --- stow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stow b/stow index c708e49..761a5b5 100755 --- a/stow +++ b/stow @@ -1,2 +1,2 @@ #!/bin/sh -stow --target="$HOME" "$@" \ No newline at end of file +stow --target="$HOME" --no-folding "$@" -- cgit 1.4.1