fmemo

Emacs_tips

最終更新:

fmemo

- view
管理者のみ編集可

文字コード、改行コードを変更する


.emacsの記述

基本的な設定

背景色として半透過の黒を使っている。そのため青色の文字が見づらいので色を変更した。
;;;スタートアップメッセージを表示しない
(setq inhibit-startup-message t)
;;; 対応する括弧を光らせる。
(show-paren-mode 1)
;;; 時計を表示
(display-time)
;;; 現在のカーソルの列を表示させる
(column-number-mode t)
;;; メニューバーを表示しない
(menu-bar-mode -1)
;;; ツールバーを表示しない
(tool-bar-mode -1)
;;; バックアッップファイルを作成しない
(setq make-backup-files nil)
;;; デフォルトだと青で見づらいので緑にする
(set-face-foreground 'font-lock-function-name-face "green")
;;; デフォルトだとミニバッファの文字が見づらいので背景を黒、文字を白にする
(set-face-foreground 'minibuffer-prompt "white")
(set-face-background 'minibuffer-prompt "black")
;;; Ctrl-hをバックスペースにする
(global-set-key "\C-h" 'delete-backward-char)

Fortran用の設定

インデント幅は半角スペース2つ分にした
;; Fortranモードの設定(固定形式)
(setq fortran-mode-hook
      '(lambda () (setq
                   fortran-do-indent 2
                   fortran-if-indent 2
                   fortran-program-indent 2
                   fortran-continuation-indent 2
                   )
         ;;(turn-on-font-lock)                                                    
         ))
;; Fortranモードの設定(自由形式)
(setq f90-mode-hook
      '(lambda () (setq
                   f90-do-indent 2
                   f90-if-indent 2
                   f90-program-indent 2
                   f90-continuation-indent 2
                   )
         ;;(turn-on-font-lock)   
         )) 

参考サイト



記事メニュー
ウィキ募集バナー