Skip to content

Commit

Permalink
Personal: add mytomatoes project settings
Browse files Browse the repository at this point in the history
  • Loading branch information
magnars committed Feb 18, 2015
1 parent e5665da commit 8048e3e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions users/fimasvee/project-mappings.el
Expand Up @@ -64,6 +64,24 @@
(project-specifics "projects/kodemaker.no"
(ffip-local-patterns "*.clj" "*.js" "*.css" "*.edn" "*.html"))

;; mytomatoes

(defun custom-persp/mytomatoes ()
(interactive)
(custom-persp "mytomatoes" (find-file "~/projects/mytomatoes/")))

(define-key persp-mode-map (kbd "C-x p y") 'custom-persp/mytomatoes)

(defun js2-mytomatoes-settings ()
(when (string-match-p "projects/mytomatoes" (buffer-file-name))
(make-variable-buffer-local 'js2-basic-offset)
(setq js2-basic-offset 4)))

(add-hook 'js2-mode-hook 'js2-mytomatoes-settings)

(project-specifics "projects/mytomatoes"
(ffip-local-patterns "*.clj" "*.js" "*.css" "*.edn" "*.sql"))

;; Oiiku

(defun custom-persp/oiiku ()
Expand Down

0 comments on commit 8048e3e

Please sign in to comment.