ChinaUnix.net
相关文章推荐:

emacs python配置

1.下载python-mode,地址: http://sourceforge.net/projects/python-mode 文件: python-mode-1.0.tar.gz 大小: 53KB 下载: 下载 2. 字节编译,在emacs中输入命令: C-x C-f /path/to/python-mode.el RET M-x byte-compile-file RET 5. 确保python-mode.el在加载路径中,测试方法: M-x locate-library RET python-mode RET 如果没有,加入下面一行到的.emacs文件中: (setq load-path (cons "/dir/of/python-...

by linxh - Python文档中心 - 2007-01-06 00:46:12 阅读(1611) 回复(0)

相关讨论

首先是emacs配置,只要在~/下的.emacs(如果没有则新建一个)里输入如下内容: ;;: -*- emacs-lisp -*- ;; .emacs ;; Author: Philippe Ivaldi ;; Définition d'une variable pour savoir si c'es Xemacs qui est utilisé (defvar running-xemacs-p (string-match "Xemacs\\|Lucid" emacs-version)) ;; Suivant la version d'(X)emacs utilisée on appelle les mêmes fichiers de ;; configurations mais depuis des réperto...

by zhiyizhi - Linux文档专区 - 2008-09-18 20:40:37 阅读(1084) 回复(0)

[code](custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(ecb-options-version "2.32") '(ecb-primary-secondary-mouse-buttons (quote mouse-1--C-mouse-1)) '(scroll-bar-mode nil) '(tool-bar-mode nil)) ...

by liuhengloveyou - C/C++ - 2010-02-12 19:39:20 阅读(6186) 回复(18)

;; .emacs ;;-----------------------------------------中文设定---------------------------------------------- ;; Setup GBK environment (require 'mule-gbk) (set-terminal-coding-system 'chinese-gbk) (set-keyboard-coding-system 'chinese-gbk) (set-language-environment 'chinese-gbk) (setq locale-coding-system 'chinese-gbk) (setq current-language-environment "Chinese-GBK") ;; Setup X Selection for mule...

by FhwFly - Linux文档专区 - 2006-07-28 20:55:37 阅读(1251) 回复(0)

本帖最后由 Dropwater 于 2012-10-14 15:14 编辑 希望大家帮帮忙.我下载了emacs24,安装在win7 32位旗舰版上,想修改每次用C-X-F打开文件时的默认路径,和保存时的默认路径,我想把默认路径设置在E:\,网上有两种说法,一种是 (setq default-directory "E:/"),和 (cd "E:/"),可我试了都不行的,朋友们给点建议吧.O(∩_∩)O谢谢啦

by Dropwater - Linux环境编程 - 2012-10-17 00:12:59 阅读(1203) 回复(2)

auto-complete 的效果 http://cx4a.org/software/auto-complete/demo.html 用起来是很爽,可惜默认只能自动补全字典里的关键字或者是buffer出现过的。 怎样能让他也补全我头文件里的函数呢? 另外还需要函数的原型提示 看文档说这个semantic 可以用auto-complete 做前段, 按照文档来配置,就是没用啊。 找不出引用的头文件里的函数, 并且想补全的时候还需要按键触发或者特定字符如 -> . 我想要包含了头文件的函数定义, 函数...

by id_for_fun - Linux环境编程 - 2011-03-09 20:35:34 阅读(2141) 回复(1)

;; Function to copy lines ;; "C-c w" copy one line, "C-u 5 C-c w" copy 5 lines (defun copy-lines(&optional arg) (interactive "p") (save-excursion (beginning-of-line) (set-mark (point)) (if arg (next-line (- arg 1))) (end-of-line) (kill-ring-save (mark) (point)) ) ) ;; set key (global-set-key (kbd "C-c w") 'copy-lines) (require 'cedet) ;;加载cedet (require 'ecb) ;;加载ecb (require 'x...

by 文融 - Linux文档专区 - 2010-02-03 14:42:43 阅读(1101) 回复(0)

; 以不提示的方式找到光标所在符号的定义 (define-key global-map [f7] 'cscope-find-global-definition-no-prompting) ; 返回调用此函数的上级处 (define-key global-map [f6] 'cscope-pop-mark) ; 以提示方式搜索符号被定义的地方 (define-key global-map [(control f7)] 'cscope-find-global-definition) ; 搜索指定符号被引用的地方 (define-key global-map [(control /)] 'cscope-find-this-symbol) ; 定位到上一个引用处 (de...

by 文融 - Linux文档专区 - 2010-01-25 10:04:52 阅读(1170) 回复(0)

;; 设置中文字体 (set-fontset-font "fontset-default" 'gb18030 ' ("Microsoft YaHei" . "unicode-bmp")) 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/110495/showart_2151293.html

by zchtoy - Linux文档专区 - 2010-01-17 18:24:57 阅读(997) 回复(0)

备份一下 ;;====================== 常用设置 ==============================; (setq load-path (cons (expand-file-name "~/.emacs.d") load-path)) (setq inhibit-startup-message t) (tool-bar-mode nil) (scroll-bar-mode nil) (setq frame-title-format "%b@emacs") (setq default-major-mode 'text-mode) ;(setq auto-image-file-mode t) (setq make-backup-files nil) ;; 设定不产生备份文件 (setq auto-save-mo...

by chenyukang - Linux文档专区 - 2009-11-22 21:50:08 阅读(973) 回复(0)

我的emacs配置文件 说明 应朋友要求,共享一下我的emacs配置文件。稍微整理了一下,还是有点乱,大家将就看吧。 我的配置文件参考了水木社区BBS和其他网站很多人的文章以及配置文件,由于是好多年来一点一点攒起来的,因此无法一一列出,请原谅。 从头开始一段一段贴吧。 基本环境 配色方案设定 几乎一天到晚面对着emacs,为了防止眼睛瞎掉,所以选个比较不刺眼的配色方案。 (require 'color-theme) ;;(color-theme-initializ...

by keluter - Linux文档专区 - 2009-04-28 21:42:09 阅读(624) 回复(0)