Skip to content

Commit 8d0ad89

Browse files
committed
Corrections.
1 parent ce90e61 commit 8d0ad89

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

bashrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,10 @@ function bashrc_generate_and_load_environment(){
734734
source "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/bashrc-keys"
735735
source "$BASH_ENV"
736736
unset be
737-
if type -p rbenv 2>/dev/null ; then
737+
if type -p rbenv 2>/dev/null 1>&2 ; then
738738
eval "$(rbenv init -)"
739739
fi
740-
if type -p pyenv 2>/dev/null ; then
740+
if type -p pyenv 2>/dev/null 1>&2 ; then
741741
eval "$(pyenv init -)"
742742
fi
743743
}

emacs-ruby.el

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
(.EMACS "~/rc/emacs-ruby.el %s" "Pascal J. Bourguignon's emacs ruby stuff.")
77

8+
(require 'ruby-mode)
9+
(require 'inf-ruby)
10+
11+
(setf inf-ruby-first-prompt-pattern "irb --> ")
12+
(setf inf-ruby-prompt-pattern (format inf-ruby-prompt-format "[?>]" "[\]>*\"'/`]"))
13+
14+
815
(require 'enh-ruby-mode nil t)
916
(autoload 'enh-ruby-mode "enh-ruby-mode" "Major mode for ruby files" t)
1017
(add-to-list 'auto-mode-alist '("\\.rb$" . enh-ruby-mode))
@@ -35,8 +42,6 @@
3542
(require 'textmate nil t)
3643

3744

38-
(setf inf-ruby-first-prompt-pattern "irb --> ")
39-
(setf inf-ruby-prompt-pattern (format inf-ruby-prompt-format "[?>]" "[\]>*\"'/`]"))
4045

4146

4247
;; Local Variables:

0 commit comments

Comments
 (0)