Skip to content

Commit

Permalink
Merge pull request #1 from stardiviner/feature/add-dir-local-function
Browse files Browse the repository at this point in the history
add a helper function to add dir-local-variables file
  • Loading branch information
zonuexe authored Nov 7, 2017
2 parents 38e1360 + 0d151fd commit 8d08517
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jetbrains.el
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,13 @@
(int-to-string (line-number-at-pos)))
" "))))))

;;;###autoload
(defun jetbrains-create-dir-local-file ()
"Create project file `.dir-locals.el' for `jetbrains.el'."
(interactive)
(add-dir-local-variable nil 'jetbrains-ide
(completing-read "Select JetBrains IDE: "
(mapcar 'car jetbrains-known-ide-alist))))

(provide 'jetbrains)
;;; jetbrains.el ends here

0 comments on commit 8d08517

Please sign in to comment.