summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar √Čtienne Deparis 2020-12-17 09:19:08 +0100
committerGravatar √Čtienne Deparis 2020-12-21 08:57:17 +0100
commit3d4db24bf51bacfc1a8c19ef26c58b897aa2311b (patch)
treebe95269d6250682c86db383c564f99646faec24e
parentd772d367e11a32b04755c19e0298524837fdc28f (diff)
downloademacs.d-3d4db24bf51bacfc1a8c19ef26c58b897aa2311b.tar.gz
emacs.d-3d4db24bf51bacfc1a8c19ef26c58b897aa2311b.tar.xz
emacs.d-3d4db24bf51bacfc1a8c19ef26c58b897aa2311b.zip
Try again to better load rvm mode
-rw-r--r--various-comp-lang.org8
1 files changed, 4 insertions, 4 deletions
diff --git a/various-comp-lang.org b/various-comp-lang.org
index 1763366..4c2aa84 100644
--- a/various-comp-lang.org
+++ b/various-comp-lang.org
@@ -137,12 +137,12 @@ spaces to indent ruby code.
(setq-local tab-width 2)))
#+end_src
-In any case, I need a working ruby environment, for exemple to execute
-my custom git hooks, while using ~magit~.
+I need a working ruby environment in some mode, for exemple to execute my
+custom git hooks, while using ~magit~.
#+begin_src emacs-lisp :tangle yes :exports code
- (add-to-list 'ed/call-me-maybe
- '(let ((inhibit-message t)) (rvm-use-default)))
+ (dolist (mode '(magit with-editor))
+ (with-eval-after-load mode (rvm-activate-corresponding-ruby)))
#+end_src
Another annoying thing is when switching between two ruby projects, I