Commit 283aec2c4610

Vincent Demeester <vincent@sbr.pm>
2016-07-24 10:14:09
Add projector and strange stuff
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 3a14e63
Changed files (2)
.emacs.d/emacs.org
@@ -293,6 +293,12 @@
     First let's install the theme(s) and load the new theme
 
     #+begin_src emacs-lisp
+      ;;(use-package apropospriate-theme
+      ;;  :ensure t
+      ;;  :config
+      ;;  ;;(load-theme 'apropospriate-dark t)
+      ;;  (load-theme 'apropospriate-light t)
+      ;;  )
       (use-package spacemacs-theme
         :ensure t
         :init
@@ -2775,6 +2781,30 @@
      )
 #+END_SRC
 
+*** Projector
+
+#+BEGIN_SRC emacs-lisp
+  (use-package projector
+    :ensure t
+    :after projectile
+    :bind
+    (("C-x RET"        . projector-run-shell-command-project-root)
+     ("C-x m"          . projector-switch-to-or-create-project-shell)
+     ("C-x <C-return>" . projector-run-default-shell-command)
+     :map comint-mode-map ("s-R" . projector-rerun-buffer-process))
+    :config
+    (setq projector-completion-system 'ivy
+          projector-always-background-regex
+          '("^make test\\.*"
+            "^make binary\\.*"
+            "^make binaries\\.*"
+            "^./script/make.sh\\.*"
+            "^git push\\.*"
+            "^pkill\\.*")
+          projector-command-modes-alist
+          '(("^heroku run console" . inf-ruby-mode))))
+#+END_SRC
+
 ** Compilation mode
 
    Set options and key binding for =compile=.
.emacs.d/init.el
@@ -36,6 +36,8 @@
 ;;     (require 'org)
 ;;     ))
 
+(setq org-root-directory (substitute-env-in-file-name "$HOME/desktop/org"))
+
 ;; keep customize settings in their own file
 (setq custom-file
       (expand-file-name "custom.el"