Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Sveningsson
dotfiles
Commits
e1f33e45
Commit
e1f33e45
authored
Nov 14, 2020
by
David Sveningsson
Browse files
emacs: reconfigure projectile for npm
parent
61cb1e42
Changes
1
Hide whitespace changes
Inline
Side-by-side
global/emacs.d/init.org
View file @
e1f33e45
...
...
@@ -504,7 +504,14 @@ Enable ~~lsp-mode~~ for selected languages
:init
(projectile-mode +1)
:config
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map))
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
(projectile-register-project-type 'npm '("package.json")
:project-file "package.json"
:configure "npm install"
:compile "npm run build"
:test "npm test"
:run "npm start"
:test-suffix ".spec"))
#+END_SRC
Use counsel for projectile as well:
#+BEGIN_SRC emacs-lisp
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment