1원짜리 팁!

Emacs의 설정파일 .emacs에서 컬러테마를 적용할 때에는,

(setq load-path (cons (expand-file-name "C:/~생략~/.emacs.d/") load-path))
(load-library "color-theme")

(require 'color-theme)
(color-theme-initialize) ;; <-- 요걸 몰라서 삽질했네!!
(color-theme-charcoal-black) ;; 테마 이름

요러 코롬 합니다. 자세한 것은 EmacsWiki: Color Theme에 있어요.
참조했던 사이트에는 color-theme-initialize가 안나와있어서 한참 헤맸네요. ㅠㅠ
(Color Theme는 따로 받아서 깔아줘야 함.)

 

팁 하나 더,
Emacs에서 파이썬 모드 사용하는거..

파이썬모드 다운로드: http://sourceforge.net/projects/python-mode/

python-mode.el을 load-path에 추가하고,

(autoload 'python-mode "python-mode" "Python Mode." t)
(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))
(add-to-list 'interpreter-mode-alist '("python" . python-mode))

아래의 훅!도 넣어주면 좋아요.

(add-hook 'python-mode-hook
           (lambda ()
             (set (make-variable-buffer-local 'beginning-of-defun-function)
                  'py-beginning-of-def-or-class)
             (setq outline-regexp "def\\|class ")))
역시 자세한 것은, EmacsWiki: Python Mode에 있어요.
 
-- Jong10

« Previous : 1 : ... 219 : 220 : 221 : 222 : 223 : 224 : 225 : 226 : 227 : ... 279 : Next »