求助emacs编程

Vim、Emacs配置和使用
回复
leokan
帖子: 203
注册时间: 2008-10-11 17:56
系统: ubuntu 12.04
来自: 厦门

求助emacs编程

#1

帖子 leokan » 2008-10-14 22:06

我是用pascal的,怎样挂载fpc编译器和gdb?网上找了一些但是它编译不了...
还有我想输入tab字符而不是indent...怎么弄?下面是我的.emacs,解决不了这个问题...

代码: 全选

(setq visible-bell t)
(setq inhibit-startup-message t)
(setq column-number-mode t)
(setq kill-ring-max 200)

(show-paren-mode t)
(setq show-paren-style 'parentheses)


( global-font-lock-mode t)
   
( display-time )


(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)
(transient-mark-mode t);
(setq default-fill-column 80);

(global-set-key (kbd "TAB") 'self-insert-command)
(global-set-key (kbd "TAB") 'tab-to-tab-stop)
(setq tab-width 4)
(setq tab-stop-list (list 4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100 104 108))
还有,有没有ubuntu下用emacs编pascal的人可以上传一下.emacs文件给我用用?谢谢
leokan
帖子: 203
注册时间: 2008-10-11 17:56
系统: ubuntu 12.04
来自: 厦门

Re: 求助emacs编程

#2

帖子 leokan » 2008-10-14 22:07

tab那个我解决了,方法是

代码: 全选

(global-set-key (kbd "`") 'self-insert-command)
(global-set-key (kbd "`") 'tab-to-tab-stop)
然后用`代替tab...还是请求更好的方法
xiao2004
帖子: 56
注册时间: 2006-05-15 3:22

Re: 求助emacs编程

#3

帖子 xiao2004 » 2008-10-15 14:19

直接 ctrl+q 再按 tab,就可以了。
leokan
帖子: 203
注册时间: 2008-10-11 17:56
系统: ubuntu 12.04
来自: 厦门

Re: 求助emacs编程

#4

帖子 leokan » 2008-10-16 9:49

谢谢,但是ctrl+q+tab 很麻烦...
终于弄好了~~yeah
放弃了tab键,因为它的自动缩进可以免除tab的麻烦.
fpc 那个我在右键那里弄自定义命令 fpc -g 就可以右键编译,不错~
回复