Aquamacs 에서 PRO*C 환경 설정

2012년 9월 23일 at 12:55 am
  1. cedet 설치
    1. http://sourceforge.net/projects/cedet/files/latest/download?source=files 에서 최신 cedet 을 다운로드
    2. cd ~/Library/Application Support/Aquamacs Emacs
    3. tar xvf ~/Downloads/cedet-1.1.tar.gz
    4. cd cedet-1.1
    5. make EMACS=/Applications/Aquamacs.app/Contents/MacOS/Aquamacs
    6. mkdir info
    7. cd info
    8. find .. -type f -name '*.info' | while read i; do j="$(basename $i)"; ln -s "$i""$j"; install-info --info-dir="$(pwd)" "$j"; done
    9. cd ..
    10. vi site-start.el
    11. (load-file “/Users/stone/Library/Application Support/Aquamacs Emacs/cedet-1.1/common/cedet.el”)

      (global-ede-mode 1) ; Enable the Project management system

      ;; These two options below are only for the stand-alone CEDET. Not the one

      ;; now included with newer Aquamacs/Emacs.

      (semantic-load-enable-code-helpers) ; Enable prototype help and smart completion

      (global-srecode-minor-mode 1) ; Enable template insertion menu

  2. ecb 설치
    1. http://sourceforge.net/projects/ecb/files/latest/download?source=files
    2. cd ~/Library/Application Support/Aquamacs Emacs
    3. tar xvf ~/Downloads/ecb-2.40.tar.gz
    4. cd ecb-2.40
    5. ln -s info-help info
    6. cd info
    7. install-info --info-dir="$(pwd)" ecb.info
    8. cd ..
    9. vi site-start.el
    10. (add-to-list ‘load-path

      “/Users/YOUR USERNAME/Library/Application Support/Aquamacs Emacs/ecb-2.40”)

      ;; Choose one of the following…

      ;; If you want to load the complete ECB at (X)Emacs-loadtime

      ;; (Advantage: All ECB-options available after loading

      ;; ECB. Disadvantage: Increasing loadtime2):

      (require ‘ecb)

      ;; If you want to load the ECB first after starting it by ecb-activate

      ;; (Advantage: Fast loading3. Disadvantage: ECB- and semantic-options

      ;; first available after starting ECB):

      ;; WARNING: This doesn’t work with the CVS version of ECB unless edit Makefile

      ;; and run make.

      ;(require ‘ecb-autoloads)

  3. mmm-mode 설치
    1. http://sourceforge.net/projects/mmm-mode/files/latest/download?source=files
    2. cd ~/Library/Application Support/Aquamacs Emacs
    3. tar zxvf ~/Downloads/mmm-mode-0.4.8.tar.gz
    1. mkdir info
    2. cd info
    3. find .. -type f -name '*.info' | while read i; doj="$(basename $i)"; ln -s "$i""$j"; install-info --info-dir="$(pwd)" "$j"; done
    4. cd ..
    5. vi site-start.el
    6. (require ‘mmm-mode)

      (set-face-background ‘mmm-default-submode-face nil)

      (mmm-add-classes

      ‘((embedded-sql

      :submode sql-mode

      :front “EXEC SQL”

      :back “;”)))

      (setq-default mmm-global-mode t)

      (mmm-add-mode-ext-class ‘c-mode “\.pc$” ’embedded-sql)

      (mmm-add-mode-ext-class ‘c-mode “\.sqc$” ’embedded-sql)

      (setq-default mmm-never-modes

      (append ‘(ediff-mode) ‘(text-mode) mmm-never-modes))