Ubuntu配置EMACS cscope

apt-get install cscope

apt-get install cscope-el

cp /usr/share/emacs/site-lisp/cscope/xcscope.el ~/.emacs.d/site-lisp/

;;LOAD_PATH
(add-to-list ‘load-path‘ "~/.emacs.d/site-lisp")
(add-to-list ‘load-path‘ "/usr/share/emacs/site-lisp/")
(require ‘xcscope)
(define-key global-map [(control f3)] ‘cscope-set-initial-directory)
(define-key global-map [(control f4)] ‘cscope-unset-initial-directory)
(define-key global-map [(control f5)] ‘cscope-find-this-symbol)
(define-key global-map [(control f6)] ‘cscope-find-global-definition)
(define-key global-map [(control f7)] ‘cscope-find-global-definition-no-prompting)
(define-key global-map [(control f8)] ‘cscope-pop-mark)
(define-key global-map [(control f9)] ‘cscope-next-symbol)
(define-key global-map [(control f10)] ‘cscope-next-file)
(define-key global-map [(control f11)] ‘cscope-prev-symbol)
(define-key global-map [(control f12)] ‘cscope-prev-file)
(define-key global-map [(meta f9)] ‘cscope-display-buffer)
(define-key global-map [(meta f10)] ‘cscope-display-buffer-toggle)

建立索引:

cscope-indexer -r3

快捷键:

;; * Keybindings:
;;
;; All keybindings use the "C-c s" prefix, but are usable only while
;; editing a source file, or in the cscope results buffer:
;;
;;      C-c s s         Find symbol.
;;      C-c s d         Find global definition.
;;      C-c s g         Find global definition (alternate binding).
;;      C-c s G         Find global definition without prompting.
;;      C-c s c         Find functions calling a function.
;;      C-c s C         Find called functions (list functions called
;;                      from a function).
;;      C-c s t         Find text string.
;;      C-c s e         Find egrep pattern.
;;      C-c s f         Find a file.
;;      C-c s i         Find files #including a file.
;;
;; These pertain to navigation through the search results:
;;
;;      C-c s b         Display *cscope* buffer.
;;      C-c s B         Auto display *cscope* buffer toggle.
;;      C-c s n         Next symbol.
;;      C-c s N         Next file.
;;      C-c s p         Previous symbol.
;;      C-c s P         Previous file.
;;      C-c s u         Pop mark.
;;
;; These pertain to setting and unsetting the variable,
;; `cscope-initial-directory‘, (location searched for the cscope database
;;  directory):
;;
;;      C-c s a         Set initial directory.
;;      C-c s A         Unset initial directory.
;;
;; These pertain to cscope database maintenance:
;;
;;      C-c s L         Create list of files to index.
;;      C-c s I         Create list and index.
;;      C-c s E         Edit list of files to index.
;;      C-c s W         Locate this buffer‘s cscope directory
;;                      ("W" --> "where").
;;      C-c s S         Locate this buffer‘s cscope directory.
;;                      (alternate binding: "S" --> "show").
;;      C-c s T         Locate this buffer‘s cscope directory.
;;                      (alternate binding: "T" --> "tell").
;;      C-c s D         Dired this buffer‘s directory.

时间: 2024-08-10 14:57:45

Ubuntu配置EMACS cscope的相关文章

ubuntu配置静态路由及重启生效

ubuntu配置静态路由及重启生效 第一种方法:使用route命令(添加临时路由) 添加到主机的路由 # route add -host 192.168.1.123 dev eth0 # route add -host 192.168.1.123 gw 192.168.1.1 添加到网络的路由 # route add -net 192.168.1.123 netmask 255.255.255.0 eth0 # route add -net 192.168.1.123 netmask 255.2

ubuntu配置SSH免密码登陆

ubuntu配置SSH免密码登陆 1.安装SSH:  2.是否生成 .ssh 目录: 3.如果没有生成,自己手动创建一个  .ssh 目录: 生成的 .ssh 目录: 4.生成公钥与私钥: 效果如下: 5.将公钥加入到用于认证的公钥文件中: 6.免密码登陆: 效果: Ubuntu 免密码登陆,SSH配置完.

Ubuntu 配置 Tomcat与日常错误解决

系统环境:Ubuntu 14.10 安装版本:apache-tomcat-7.0.54.tar.gz 安装步骤: 1.下载 Tomcat 下载 apache-tomcat-7.0.54.tar.gz 2.解压 Tomcat 点击用归档管理器打开,将其解压到home目录下,为方便起见,将文件夹名字改为tomcat 3.配置 Tomcat 打开启动的脚本文件 sudo vi ./bin/startup.sh 添加 jdk 和 jre 环境变量,如下图红色矩形区域: 直接复制: [html] view

Ubuntu配置静态IP

Ubuntu配置静态IP 静态IP配置 Ubuntu 的网络配置信息放在 /etc/network/interfaces 中,如果配置动态获取ip,则在上述文件中加入以下内容:使用如下命令打开网络配置信息文件: sudo gedit /etc/network/interfaces 编辑文件(注意检察你的getway是否正确.): auto eth0iface eth0 inet staticaddress 192.168.8.119netmask 255.255.255.0gateway 192

Ubuntu 配置 ftp freemind adb

. 1. 配置apt-get源 配置过程 : sudo vim /etc/profile 命令, 在后面添加下面的内容; 刷新配置文件 : source /etc/profie 命令; 刷新源 : sudo apt-get update 命令; 刚装上的Ubuntu 官方的源很慢, 这里我们添加其他的几个中国国内的高速镜像 : 添加下面的源 : ## Chinese Science University deb http://mirrors.ustc.edu.cn/ubuntu/ precise

ubuntu配置caffe的python接口pycaffe

参考网站: http://blog.csdn.net/sanmao5/article/details/51923982 (主要参考) https://github.com/BVLC/caffe/issues/782 (问题解决) ubuntu配置caffe的python接口pycaffe 依赖 前提caffe已经正确编译.见Ubuntu配置caffe 库包 sudo apt-get install python-pip sudo atp-get install python-dev python

ubuntu配置cudnn

参考网站: http://blog.sina.com.cn/s/blog_a5fdbf010102w7f6.html http://www.linuxidc.com/Linux/2015-04/116445.htm ubuntu配置cudnn 下载 https://developer.nvidia.com/rdp/cudnn-download 注册,下载,选择合适的版本. 用同样的方法尝试了cudnn-v3不行,cudnn-v4成功了. 解压 将下载后的文件cudnn-7.0-linux-x64

Ubuntu配置eth网卡,固定IP地址

Ubuntu配置eth网卡,固定IP地址 1.修改配置文件/etc/network/interfaces [email protected]:~# sudo gedit /etc/network/interfaces 添加以下内容: auto eth0                  #设置自动启动eth0接口 iface eth0 inet static     #配置静态IP address 192.168.11.88      #IP地址 netmask 255.255.255.0   

Ubuntu配置GPU+CUDA+CAFFE

参考网站: http://blog.csdn.net/xizero00/article/details/43227019/ (主要参考) http://www.cnblogs.com/platero/p/3993877.html (caffe+cudaGPU) http://www.cnblogs.com/platero/p/4118139.html (cuDNN) http://developer.download.nvidia.com/compute/cuda/repos/ubuntu140