最近解决了几个小问题,在这说说
首先,无论你emacs23中的字体配置的再好看,使用C-x 5 系列命令时(在另一个frame里打开文件),字体都会回到其他默认设置,解决办法是在字体设置的最后加一行
(setq default-frame-alist
(append
'((font . "你要的字体")) default-frame-alist))
另外
(setq auto-save-file-name-transforms
'(("\\`/[^/]*:\\([^/]*/\\)*\\([^/]*\\)\\'" "~/.emacs.tmp/\\2" t)
("\\`/?\\([^/]*/\\)*\\([^/]*\\)\\'" "~/.emacs.tmp/\\2" t)))
(setq backup-directory-alist '(("." . "~/.emacs.tmp/")))
(setq semanticdb-default-save-directory "~/.emac.tmp")
就可以把semantic.cache,autosave(就是前后有##的文件),backup(后面有~的文件)都存到~/emacs.tmp中
不会搞乱你的目录树
还有,前一段时间看到有人问emacs23里tramp和ido冲突,C-x C-f 新建文件时tramp 就跳出来,估计用的是论坛里给的那个包,直接装源里的emacs-snapshot吧,或者用http://peadrop.com/blog/2007/01/06/pretty-emacs/ 提供的deb包,
别在网上找el了,换用emacs-goodies-el 的deb包里的吧,apt-get install就行,基本上都有,matlab.el 都在里面但是要用的话,要down一个semantic-matlab.el 源里的cedet semantic project没带这个文件,
igrep.el很好用,推荐,把配置贴一下
(autoload 'igrep "igrep"
"*Run `grep` PROGRAM to match REGEX in FILES..." t)
(autoload 'igrep-find "igrep"
"*Run `grep` via `find`..." t)
(autoload 'igrep-visited-files "igrep"
"*Run `grep` ... on all visited files." t)
(autoload 'dired-do-igrep "igrep"
"*Run `grep` on the marked (or next prefix ARG) files." t)
(autoload 'dired-do-igrep-find "igrep"
"*Run `grep` via `find` on the marked (or next prefix ARG) directories." t)
(autoload 'Buffer-menu-igrep "igrep"
"*Run `grep` on the files visited in buffers marked with '>'." t)
(autoload 'igrep-insinuate "igrep"
"Define `grep' aliases for the corresponding `igrep' commands." t)
(autoload 'grep "igrep"
"*Run `grep` PROGRAM to match REGEX in FILES..." t)
(autoload 'egrep "igrep"
"*Run `egrep`..." t)
(autoload 'fgrep "igrep"
"*Run `fgrep`..." t)
(autoload 'agrep "igrep"
"*Run `agrep`..." t)
(autoload 'grep-find "igrep"
"*Run `grep` via `find`..." t)
(autoload 'egrep-find "igrep"
"*Run `egrep` via `find`..." t)
(autoload 'fgrep-find "igrep"
"*Run `fgrep` via `find`..." t)
(autoload 'agrep-find "igrep"
"*Run `agrep` via `find`..." t)
以上不知道对大家又用没用,另外还得请教几个问题,主要是关于tramp的,我的tramp基本没怎么配置,现在不论是用sudo su ssh scp 都告诉我
Name or service not known
process *tramp/*** kill
谁能帮忙分析一下
我主要是ssh/sudo localhost来改权限
配置在这里
(require 'ange-ftp)
(require 'tramp)
(setq tramp-default-method "scp")
(setq tramp-auto-save-directory "~/.emacs.tmp")
(setq tramp-chunksize 328)
会不会是ssh-server的问题???,请教了
先支着,再请教
Vim、Emacs配置和使用
前往
- 公告/注意事项
- ↳ 新闻和通知
- ↳ 软件推荐
- 系统安装
- ↳ 教学和常见问答
- ↳ 系统安装和升级
- ↳ 启动和引导
- ↳ 网卡无线拨号
- ↳ 硬件与内核
- ↳ 笔记本及便携设备
- ↳ Ubuntu衍生版
- ↳ 其他类Unix OS发行版
- ↳ Debian发行版
- 配置美化
- ↳ 中文显示和输入法
- ↳ 个人配置文件存放点
- ↳ 软件文档翻译
- ↳ 窗口管理器及美化
- ↳ 桌面展示
- 软件使用
- ↳ 办公、图像、机械电子设计等
- ↳ Vim和Emacs
- ↳ 开源模板库
- ↳ 互联网相关软件
- ↳ 影音多媒体
- ↳ 游戏和模拟器
- ↳ 虚拟机和虚拟化
- ↳ Wine及其分支
- ↳ 其它类软件
- 服务器管理
- ↳ 服务器运维
- ↳ 云计算和容器(K8S/KVM/Docker/WSL等)
- ↳ Ubuntu VPS
- 程序设计与开发
- ↳ Shell脚本
- ↳ 软件/网站开发
- ↳ 内核及嵌入式开发
- ↳ Ubuntu编译和打包
- ↳ 开源小工具
- ↳ 挑战任务
- 感想与交流
- ↳ 深度PK版
- ↳ Ubuntu故事和感慨
- ↳ 同城交流
- ↳ 校园社团
- ↳ 港澳台校区
- ↳ 国外校区
- 站务区
- ↳ 论坛管理
- ↳ Ubuntu中文网上商店