單詞化日記 留言簿 主頁

Win32 Emacs 配置

Ubuntu下編程序用Emacs習慣了,WinXP的IDE倒用起來不順手了,下載了一個(Patched的那個)~

剛下載下來的的當然不能直接用了,除非你受得了那奇怪的字體= =

.emacs是emacs的配置文件,Win32下在 C:\Documents and Settings\你的用戶名\Application Data下

下面這個是我參考了N多人的帖子寫出來的配置,呵呵,Ubuntu中文論壇Evalls,謝謝了

這個配置適合pascal環境,自定義了F5關閉窗口,F7單步,F8單步,F9編譯,F10GDB

fontset-wincolor-theme自己到網上去下載一下吧,保存到下面的那個位置,一個是改字體的,另一個是改顏色配置的

emacs2emacs

(custom-set-variables
'(appmenu-mode t)
'(column-number-mode t)
'(cua-mode t nil (cua-base))
'(display-time-mode t)
'(emacsw32-max-frames t)
'(emacsw32-style-frame-title t)
'(hfyview-quick-print-in-files-menu t)
'(menuacc-mode t)
'(noprint-hide-print-in-menus t)
'(noprint-hide-ps-print-in-menus t)
'(ourcomments-ido-ctrl-tab t)
'(rebind-keys-mode t)
'(recentf-mode t)
'(show-paren-mode t)
'(tabkey2-mode t)
'(w32-meta-style (quote w32-lr))
'(w32shell-shell (quote cmd)))

( global-font-lock-mode t)

( display-time )

( column-number-mode t)

(defun quick-compile ()
"A quick compile funciton for pascal"
( interactive )
( compile (concat "fpc " (buffer-name (current-buffer)) " -Sg -Si -Sa -Mfpc -Cr -Ci -Co -CR -Og -Op2 -g"))
)
( global-set-key [(f9)] 'quick-compile)

( global-set-key [(f5)] 'delete-other-windows)

( global-set-key [(f10)] 'gdb)

( global-set-key [(f8)] 'gud-next )
( global-set-key [(f7)] 'gud-step )

(global-font-lock-mode t);语法高亮
(auto-image-file-mode t);打开图片显示功能
(fset 'yes-or-no-p 'y-or-n-p);以 y/n代表 yes/no,可能你觉得不需要,呵呵。
(column-number-mode t);显示列号
(show-paren-mode t);显示括号匹配
(display-time-mode 1);显示时间,格式如下
(setq display-time-24hr-format t)
(setq display-time-day-and-date t)
(tool-bar-mode nil);去掉那个大大的工具栏
(scroll-bar-mode nil);去掉滚动条,因为可以使用鼠标滚轮了 ^_^
(mouse-avoidance-mode 'animate);光标靠近鼠标指针时,让鼠标指针自动让开,别挡住视线。很好玩阿,这个功能
(transient-mark-mode t);这个忘了,郁闷!
(setq x-select-enable-clipboard t);支持emacs和外部程序的粘贴
(setq frame-title-format "Wandsea@%b");在标题栏提示你目前在什么位置。你要把zhan改成自己的用户名
(setq default-fill-column 80);默认显示 80列就换行

(load-file "C:/Program Files/Emacs/color-theme.el")
(color-theme-blue-mood);选择 darkblue的配色方案
(load-file "C:/Program Files/Emacs/fontset-win.el")
(load "fontset-win")
(huangq-fontset-monaco 11)

那圖片,怨念的題目,ansistring= =

欢迎订阅我的Blog,如果有困难,可以参考我的RSS订阅帮助

3 Responses to “Win32 Emacs 配置”

  1. CmYkRgB123

    个人比较喜欢GVIM,不喜欢Emacs。

    Reply

    Wandsea Reply:

    呵呵~我是用習慣了~其實都差不多

    Reply

  2. OIlogs

    博客通过审核了,别忘了加上oilogs的链接哦!

    Reply

Leave a Reply

Additional comments powered by BackType


  • Google Adsense

  • 訂閱我

  • G-Readers

  • My Links