Next: , Previous: , Up: Emacs and Gforth   [Contents][Index]


13.1 Installing gforth.el

gforth.el の機能を Emacs で利用できるようにするには、 .emacs ファイルに次の行を追加します(訳注: 2024年時点では .emacs.d/init.el ):

(autoload 'forth-mode "gforth.el")
(setq auto-mode-alist (cons '("\\.fs\\'" . forth-mode) 
			    auto-mode-alist))
(autoload 'forth-block-mode "gforth.el")
(setq auto-mode-alist (cons '("\\.fb\\'" . forth-block-mode) 
			    auto-mode-alist))
(add-hook 'forth-mode-hook (function (lambda ()
   ;; customize variables here:
   (setq forth-indent-level 4)
   (setq forth-minor-indent-level 2)
   (setq forth-hilight-level 3)
   ;;; ...
)))

;; 訳注: とりあえずインストール( .emacs.d/init.el ):
;; /path/to/gforth-dev フォルダに gforth.el gforth.elc があるとして
(add-to-list 'load-path "/path/to/gforth-dev")
(require 'forth-mode "gforth")