문제

하지 않은 사람들을 위해 사용되는 DrScheme,창은 두 부분으로 분할:하나는 부분은 파일을 편집하고,다른 작 쉘입니다.면 나는 실행 파일이 로드 상호 작용하는 환경,그래서 호출할 수 있는 기능이 내가 정의된 etc.상호 작용하는 환경전의 모든 기능을 가지고 있는 텍스트 편집기(구문 강조를 자동 완료,etc...)

그래서 거기 IDE 비스하지 않는 실행하는 스크립트를 만들고 있어요,하지만 부으로 irb 대신에,모든 텍스트 편집기 goodies?

도움이 되었습니까?

해결책

이 정확한 요구(심지어는 사실 박사 Scheme 기)는 마지막으로 저를 밀어를 배우 Emacs.

여기에 내가 무슨 짓을했는지 그것을 설치하는 Windows Vista:

  1. 다운로드 Emacs 서 http://ftp.gnu.org/gnu/windows/emacs/emacs-22.3-bin-i386.zip

  2. 압축을 해제하는 귀하의 선택의 디렉토리

  3. 압축을 해제 한 후 그것을 만들기 이 포함됩 디렉토리 어디에서든지 당신이 원하고 사본을 모두 거기에 ruby-mode.엘ruby-inf.엘 (이러한 루비 배포에서 기타 디렉토리에서 다운로드할 수도 있습니다 루비의 원

  4. .emacs 를 말하는 그것을 찾을 포함하고 그들을 사용하는

; directory to put various el files into
(add-to-list 'load-path "C:/emacs-22.3/includes")
;(1)modify .emacs to use ruby-mode 
(autoload 'ruby-mode "ruby-mode"
  "Mode for editing ruby source files" t)
(setq auto-mode-alist
      (append '(("\\.rb$" . ruby-mode)) auto-mode-alist))
(setq interpreter-mode-alist (append '(("ruby" . ruby-mode))
                              interpreter-mode-alist))
;(2)set to load inf-ruby and set inf-ruby key definition in ruby-mode. 

(autoload 'run-ruby "inf-ruby"
  "Run an inferior Ruby process")
(autoload 'inf-ruby-keys "inf-ruby"
  "Set local key defs for inf-ruby in ruby-mode")
(add-hook 'ruby-mode-hook
      '(lambda ()
         (inf-ruby-keys)
))

(옵션)내가 또한 설치 모 컴파일.엘http://perso.tls.cena.fr/boubaker/distrib/mode-compile.el 고 해당 편집니다.emacs

; Install mode-compile
(autoload 'mode-compile "mode-compile"
   "Compile current buffer based on the major mode" t)
(global-set-key "C-cc" 'mode-compile)
(autoload 'mode-compile-kill "mode-compile"
 "Kill compilation launched by `mode-compile'" t)
(global-set-key "C-ck" 'mode-compile-kill)

그 변화 이맥스가 자동으로 식별하다.rb 파일로 루비오 구문 강조.다음 코드\C-c\C-s(제어-c 릴리스 및 그 제어-s)irb 시작은 아래의 상자에 당신의 파일을 사용할 수 있는 모든 키로 정의 inf-ruby:(\M 메타 키를 위한 윈도우미 Alt)

  "\C-c\C-b" 'ruby-send-block
  "\C-c\M-b" 'ruby-send-block-and-go
  "\C-c\C-x" 'ruby-send-definition
  "\C-c\M-x" 'ruby-send-definition-and-go
  "\C-c\C-r" 'ruby-send-region
  "\C-c\M-r" 'ruby-send-region-and-go
  "\C-c\C-z" 'switch-to-ruby
  "\C-c\C-l" 'ruby-load-file
  "\C-c\C-s" 'run-ruby

았으면 선택하고 설치 모드를 컴파일을 사용할 수도 있습\C-cc 보내려면 현재 파일을 대신 루비의 irb

다른 팁

나는 일을 하지 않았으로 DrScheme 아직,그러나 Netbeans6.5 을 포함한 전체 추천 IRB.당신은 그것을 시도 주어진?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top