- 浏览: 886488 次
- 性别:
- 来自: 太原
文章分类
- 全部博客 (198)
- Linux/Unix (38)
- TinyOS / NS-2 for『WSN』 (44)
- 思想的拼图 (5)
- 开源 OpenSource (2)
- Framework 开发框架 (0)
- Software Engineering 软件工程 (2)
- IT项目管理 (6)
- Networking 网络技术 (2)
- Java (6)
- C语言 ANSI C (22)
- .NET / C# (9)
- C++ (12)
- Web 语言 Html/Xml (5)
- Groovy on Grails (1)
- Algorithm 算法 (1)
- Database 数据库技术 (5)
- Tools (21)
- VM 虚拟机 (3)
- WSN (wireless sensor network) (2)
- Linux 命令专辑 (3)
- PHP (0)
- 办公软件 (3)
最新评论
-
cfczdws:
感谢楼主,查了半天终于发现居然是htmlentities()做 ...
htmlentities()函数把中文转成了乱码 -
decoxiaohan:
这本书的名字 有谁知道????~~~
OMNeT++中文用户手册(完全版) -
huonie:
怎么下载啊
OMNeT++中文用户手册(完全版) -
huonie:
没有内容啊
OMNeT++中文用户手册(完全版) -
kyx0413:
谢谢先 先看看
OMNeT++中文用户手册(完全版)
; Set up nesC syntax highlighting (autoload 'nesc-mode "nesc.el") (add-to-list 'auto-mode-alist '("\\.nc\\'" . nesc-mode)) ; Delete selected text (delete-selection-mode t) ; Nice highlighting (setq-default transient-mark-mode t) (global-font-lock-mode t) ; Good-looking code (show-paren-mode 1) (column-number-mode 1) ; Changes Emacs 21 made that I don't like (blink-cursor-mode -1) (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. '(blink-cursor-mode nil) '(c-basic-offset (quote set-from-style)) '(column-number-mode t) ;'(cua-mode t) '(cua-mode t nil (cua-base)) '(ecb-options-version "2.32") '(inhibit-startup-screen t) '(mouse-drag-copy-region nil) '(show-paren-mode t) '(x-select-enable-clipboard t)) (custom-set-faces ;; custom-set-faces 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. ) ; no sound (setq visible-bell t ) ; no start picture ;(setq inhibit-startup-message t) ; show title (setq frame-title-format "emacs@%b") ; emacs window start position and size (setq default-frame-alist '((height . 35) (width . 100) (top . 80) (left . 80) (menu-bar-lines . 10) (tool-bar-lines . 10))) ; mouse behavior (mouse-wheel-mode t) ;enable Mouse-wheel (setq mouse-wheel-scroll-amount '(1 ((shift) . 1) ((control) . nil))) ;;line number (add-to-list 'load-path "~/Emacs/") (require 'display-line-number) ;;line number face (make-face 'my-display-line-number-face) (copy-face 'default 'my-display-line-number-face) (set-face-attribute 'my-display-line-number-face t :foreground "cyan" :background "#3c5473") (setq display-line-number-face 'my-display-line-number-face) (setq display-line-number-format "%3d ") ;;display line number for all files (global-display-line-number-mode 1) ;(add-hook 'c-mode-hook 'display-line-number-mode) ;(add-hook 'cc-mode-hook 'display-line-number-mode) ;(require 'linum) ;(setq linum-face 'my-display-line-number-face) ;(setq linum-format "%3d ") ;(add-hook 'find-file-hooks (lambda () (linum-mode 1))) ;(global-set-key [f6] 'linum-mode) ;; Load CEDET. ;; See cedet/common/cedet.info for configuration details. (load-file "~/Emacs/cedet-1.0pre6/common/cedet.el") ;; Enable EDE (Project Management) features ;(global-ede-mode 1) ;; Enable EDE for a pre-existing C++ project ;; (ede-cpp-root-project "NAME" :file "~/myproject/Makefile") ;; Enabling Semantic (code-parsing, smart completion) features ;; Select one of the following: ;; * This enables the database and idle reparse engines (semantic-load-enable-minimum-features) ;; * This enables some tools useful for coding, such as summary mode ;; imenu support, and the semantic navigator (semantic-load-enable-code-helpers) ;;short-cut for speedbar (global-set-key[(f4)] 'speedbar-get-focus) ;(define-key c-mode-base-map [(meta ?/)] 'semantic-ia-complete-symbol-menu) ;; * This enables even more coding tools such as intellisense mode ;; decoration mode, and stickyfunc mode (plus regular code helpers) ;; (semantic-load-enable-gaudy-code-helpers) ;; * This enables the use of Exuberent ctags if you have it installed. ;; If you use C++ templates or boost, you should NOT enable it. ;; (semantic-load-enable-all-exuberent-ctags-support) ;; Enable SRecode (Template management) minor-mode. ;; (global-srecode-minor-mode 1) ;; LOAD ecb (add-to-list 'load-path "~/Emacs/ecb-2.32") (require 'ecb-autoloads) ;;Color theme (add-to-list 'load-path "~/Emacs/color-theme-6.6.0/") (require 'color-theme) ;;initialize color theme (color-theme-initialize) ;;select a color theme (color-theme-classic) ;; set tab indent (setq indent-tabs-mode nil) (setq default-tab-width 4) (setq tab-width 4) (setq tab-stop-list ()) (loop for x downfrom 40 to 1 do (setq tab-stop-list (cons (* x 4) tab-stop-list))) (defconst my-c-style '((c-tab-always-indent . nil) (c-comment-only-line-offset . 0) (c-hanging-braces-alist . ((brace-list-open) (brace-entry-open) (statement-cont) (substatement-open after) (block-close . c-snug-do-while) (extern-lang-open after) (namespace-open after) (module-open after) (composition-open after) (inexpr-class-open after) (inline-open after) (class-open after) (inexpr-class-close before))) (c-hanging-colons-alist . ((member-init-intro before) (inher-intro) (statement) (case-label after) (label after) (access-label after))) (c-cleanup-list . (scope-operator empty-defun-braces defun-close-semi)) (c-offsets-alist . ((arglist-close . c-lineup-arglist) (substatement-open . 0) (cpp-macro . 0) (case-label . 4) (block-open . 0) (knr-argdecl-intro . -))) (c-hanging-semi&comma-criteria . (c-semi&comma-no-newlines-before-nonblanks c-semi&comma-no-newlines-for-oneline-inliners c-semi&comma-inside-parenlist)) (c-echo-syntactic-information-p . t) ) "My C Programming Style") ;; offset customizations not in my-c-style (setq c-offsets-alist '((member-init-intro . ++))) ;; Customizations for all modes in CC Mode. (defun my-c-mode-common-hook () ;; add my personal style and set it for the current buffer (c-add-style "PERSONAL" my-c-style t) ;; other customizations (setq tab-width 4 ;; this will make sure spaces are used instead of tabs indent-tabs-mode nil) ;; we like auto-newline and hungry-delete (c-toggle-auto-hungry-state 1) ;; key bindings for all supported languages. We can put these in ;; c-mode-base-map because c-mode-map, c++-mode-map, objc-mode-map, ;; java-mode-map, idl-mode-map, and pike-mode-map inherit from it. (define-key c-mode-base-map "\C-m" 'c-context-line-break) ) (add-hook 'c-mode-common-hook 'my-c-mode-common-hook) ;; cancel select copy (setq x-select-enable-primary nil)
工具的配置和安装, 附件中工具解压,copy到~/Emacs/
nesc.el (从nesc.tar解压出)放到/usr/local/share/emacs/site-lisp/ or
/usr/share/ncc/editor-modes/emacs/
- emacs-tools.tar (3.3 MB)
- 下载次数: 20
- nesc.tar (10 KB)
- 下载次数: 14
发表评论
-
ksh 使用手记
2009-12-03 20:52 18401. 实现像bash那样上下方向键显示^[[A,^[[B,不能 ... -
Linux建立本地cvs服务器
2009-08-14 22:25 1538在RH Linux上快速建立本地CVS服务器的小指南 前提, ... -
如何在 Linux 中执行命令?
2009-08-12 21:01 23741、怎样在后台执行命令 ... -
linux查看命令/文件所在路径的命令及修改
2009-08-12 21:01 36118whereis 用来查看一个命令或者文件所在的绝对路径,而 w ... -
emacs的缩进和自动添加新行
2009-07-27 22:22 6878emacs很强大,但是强大是以复杂的配置为前提的!没有配置好的 ... -
linux share文件
2009-07-27 20:57 2173安装好samba并在share folder中设置好想要共享的 ... -
Emacs学习笔记
2009-07-24 23:09 17531. 如何安装el文件 A:单个文件直接放入 ... -
Ubuntu中emacs23 的字体设置和emacs初始窗口位置的小经验
2009-07-24 19:09 7758Debian users, if your emacs sta ... -
scim 智能拼音消失的恢复办法
2009-07-06 19:48 1469完全删掉~/.scim后重启scim -
Linux 字符操作指令
2009-07-03 01:19 1254awk awk 用来从文本文件中提取字段。缺省地,字段分割符 ... -
Shell编程学习摘录十三--shell函数
2009-07-02 01:16 4114shell允许将一组命令集 ... -
Linux Shell脚本编写详解
2009-07-01 23:56 58171. Linux 脚本编写基础 1.1 语法基本介绍 1 ... -
Grep用法
2009-06-25 23:40 24431. grep简介 grep (global search ... -
ubuntu不能识别U盘的问题
2009-06-19 01:57 21101ubuntu插入u盘后,系统没 ... -
linux编程环境配置
2009-06-16 21:29 1045Gedit 1. 在Edit->Perferen ... -
Ubuntu英文版中显中文
2009-06-16 00:13 2495添加中文语言包 方法1. 在system->找到 ... -
linux之less/more命令
2009-06-11 19:46 3973名称:less 使用权限:所有使用者 使用方式:les ... -
Ubuntu 修改默认启动项
2009-06-05 16:22 1830sudo cp /boot/grub/menu.lst /bo ... -
Emacs 显示行号
2009-04-11 21:52 4507显示行号 把linum.el放到加载路径~/.emacs.d ... -
Emacs Mode for GDB
2009-04-11 01:41 1680Emacs Mode for GDB A graphical ...
相关推荐
本配置文件基于网上提供的其他配置文件进行修改。 支持: emacs 24 +cedet 1.1 +ecb 2.40 源配置文件下载地址: http://download.csdn.net/detail/karotte/3812760
我的emacs配置文件 linux 下载后解压到用户家目录下面,即可使用。 可能有的会出错,自己相应地修改.emacs文件即可。
这是我的emacs配置文件,和我的blog相对应的
emacs配置文件的修正版,网上现有的emacs.d很多都缺少部分文件。另外如何配置可参考本人的blog文章:emacs配置。
emacs config file, emacs编辑器的一个配置文件
emacs配置文件,针对emacs23.1 emacs配置文件,针对emacs23.1 emacs配置文件,针对emacs23.1 emacs配置文件,针对emacs23.1
emacs 配置文件(已经测试适合Windows和Linux),已经包含了各个扩展,主要的功能: 基本功能: 1. 设置colortheme 2. 共享系统剪贴板 3. 显示括号匹配 4. 用y-n取代yes-no 5. 用法高亮 6. 显示时间 7. 自动保存session...
Emacs配置文件
windows下安装emacs及添加配置文件代码
自己备份的emacs配置文件,用于自己后续完善
Emacs的配置文件,可以略加修改,适合不同的环境。
emacs常用配置... emacs常用配置...
一个比较简单的,仅用yasnippet,ecb,cedet三个插件的emacs配置文件
emacs23.3 config emacs配置文件
emacs的配置文件,适用于emacs22.x和23.x,是我在网上找的然后整理的,配合mingw使用的,压缩包里的内容要放在根目录下才能好用,查找根目录的方法是:先按C-x再按C-f然后输入~符号再回车就会看到根目录了.
emacs配置文件.7z