Permalink
Browse files

Move project mappings to my user directory.

  • Loading branch information...
1 parent e9d703f commit 4ad78cd3b80174b52a244e171360e272c54bd97c @magnars committed Jan 26, 2012
Showing with 48 additions and 47 deletions.
  1. +0 −17 project-mappings.el
  2. +0 −30 setup-perspective.el
  3. +48 −0 users/fimasvee/project-mappings.el
View
17 project-mappings.el
@@ -1,17 +0,0 @@
-;; FINN Oppdrag
-(require 'oppdrag-mode)
-(add-hook 'find-file-hook
- (lambda ()
- (when (string-match-p "oppdrag-services" (buffer-file-name))
- (oppdrag-mode))))
-
-;; Zombie TDD
-(add-hook 'js2-mode-hook
- (lambda ()
- (when (string-match-p "zombietdd" (buffer-file-name))
- (setq js2-additional-externs '("ZOMBIE" "Faye"))
- (setq buster-default-global "ZOMBIE")
- (setq buster-add-default-global-to-iife t)
- (setq buster-use-strict t))))
-
-(provide 'project-mappings)
View
30 setup-perspective.el
@@ -18,36 +18,6 @@
(interactive)
(persp-switch (persp-name persp-last)))
-(defun custom-persp/oppdrag ()
- (interactive)
- (custom-persp "oppdrag"
- (find-file "~/projects/finn-oppdrag/oppdrag-services/app-main/web/src/")))
-
-(defun custom-persp/zombie ()
- (interactive)
- (custom-persp "zombie"
- (find-file "~/projects/zombietdd/")))
-
-(defun custom-persp/adventur ()
- (interactive)
- (custom-persp "adventur"
- (find-file "~/projects/adventur/nettsidene/adventur_no/source/backlog.txt")))
-
-(defun custom-persp/emacs ()
- (interactive)
- (custom-persp "emacs"
- (find-file "~/.emacs.d/init.el")))
-
-(defun custom-persp/org ()
- (interactive)
- (custom-persp "org"
- (find-file "~/Dropbox/org/")))
-
-(define-key persp-mode-map (kbd "C-x p o") 'custom-persp/oppdrag)
-(define-key persp-mode-map (kbd "C-x p z") 'custom-persp/zombie)
-(define-key persp-mode-map (kbd "C-x p a") 'custom-persp/adventur)
-(define-key persp-mode-map (kbd "C-x p e") 'custom-persp/emacs)
-(define-key persp-mode-map (kbd "C-<f6>") 'custom-persp/org)
(define-key persp-mode-map (kbd "C-x p -") 'custom-persp-last)
(provide 'setup-perspective)
View
48 users/fimasvee/project-mappings.el
@@ -0,0 +1,48 @@
+;; Project peculiarities: FINN Oppdrag
+(require 'oppdrag-mode)
+(add-hook 'find-file-hook
+ (lambda ()
+ (when (string-match-p "oppdrag-services" (buffer-file-name))
+ (oppdrag-mode))))
+
+;; Project peculiarities: Zombie TDD
+(add-hook 'js2-mode-hook
+ (lambda ()
+ (when (string-match-p "zombietdd" (buffer-file-name))
+ (setq js2-additional-externs '("ZOMBIE" "Faye"))
+ (setq buster-default-global "ZOMBIE")
+ (setq buster-add-default-global-to-iife t)
+ (setq buster-use-strict t))))
+
+;; Perspectives
+
+(defun custom-persp/oppdrag ()
+ (interactive)
+ (custom-persp "oppdrag"
+ (find-file "~/projects/finn-oppdrag/oppdrag-services/app-main/web/src/")))
+
+(defun custom-persp/zombie ()
+ (interactive)
+ (custom-persp "zombie"
+ (find-file "~/projects/zombietdd/")))
+
+(defun custom-persp/adventur ()
+ (interactive)
+ (custom-persp "adventur"
+ (find-file "~/projects/adventur/nettsidene/adventur_no/source/backlog.txt")))
+
+(defun custom-persp/emacs ()
+ (interactive)
+ (custom-persp "emacs"
+ (find-file "~/.emacs.d/init.el")))
+
+(defun custom-persp/org ()
+ (interactive)
+ (custom-persp "org"
+ (find-file "~/Dropbox/org/")))
+
+(define-key persp-mode-map (kbd "C-x p o") 'custom-persp/oppdrag)
+(define-key persp-mode-map (kbd "C-x p z") 'custom-persp/zombie)
+(define-key persp-mode-map (kbd "C-x p a") 'custom-persp/adventur)
+(define-key persp-mode-map (kbd "C-x p e") 'custom-persp/emacs)
+(define-key persp-mode-map (kbd "C-<f6>") 'custom-persp/org)

0 comments on commit 4ad78cd

Please sign in to comment.