疑问,我的emacs中文的反锯齿效果打不开,要怎么才可以打开呢?
时间:2009-11-19
来源:互联网
emacs-23版本,终于加入了矢量字体的支持,但是中文为什么反锯齿的效果是关闭的呢?附加
(我用的雅黑)
-------------------------
Q2:
另外一个疑问。怎么设置emacs的关键字补全路径,就像VIM里设置path变量一样?
Q3:
怎么设置可以让emacs的关键字补全,像VIM里面有*出是菜单(POP菜单)??
附件图片
抓图3.jpeg (111.1 KB, 62 次查看) |
作者: firefoxmmx 发布时间: 2009-11-19
作者: firefoxmmx 发布时间: 2009-11-19
emacs的22和23可以看成两个分支,我几年前就在用cvs的emacs23了
作者: hpo3 发布时间: 2009-11-20
作者: firefoxmmx 发布时间: 2009-11-22
(set-default-font "Consolas-12")
(set-fontset-font (frame-parameter nil 'font)
'han '("微软雅黑". "unicode-bmp"))
(set-fontset-font (frame-parameter nil 'font)
'cjk-misc '("微软雅黑" . "unicode-bmp"))
(set-fontset-font (frame-parameter nil 'font)
'bopomofo '("微软雅黑" . "unicode-bmp"))
(set-fontset-font (frame-parameter nil 'font)
'gb18030 '("微软雅黑". "unicode-bmp"))
(set-fontset-font (frame-parameter nil 'font)
'symbol '("微软雅黑". "unicode-bmp"))
作者: hpo3 发布时间: 2009-11-22
(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. '(column-number-mode t) '(display-time-mode t) '(scroll-bar-mode (quote right)) '(show-paren-mode t) '(size-indication-mode t) '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))) ;; 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. '(display-time-mode nil) '(show-paren-mode 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. ) ;; ;; ;; ;;关于emacs yasnippet的配置,万能补全相关 (add-to-list 'load-path "/usr/share/emacs/site-lisp/yas") (require 'yasnippet) ;; not yasnippet-bundle (yas/initialize) (yas/load-directory "/usr/share/emacs/site-lisp/yas/snippets") ;;end ;;关于CSCOPE的配置,查看代码相关 (require 'xcscope) ;;end ;;ui设置, 设置tab宽度为4 (setq c-basic-offset 4) (setq default-tab-width 4) (setq-default indent-tabs-mode nil) ;;end ;; 不产生备份文件 (setq make-backup-files nil) ;;end ;; 保存上次的操作记录到SESSION: http://emacs-session.sourceforge.net/ (require 'session) (add-hook 'after-init-hook 'session-initialize) (setq session-save-file "~/.emacs.d/session") ;;end ;; 代码折叠: ;; http://www.gnuvola.org/software/j/hideshow/ (load-library "hideshow") (add-hook 'c-mode-hook 'hs-minor-mode) (add-hook 'c++-mode-hook 'hs-minor-mode) (add-hook 'java-mode-hook 'hs-minor-mode) (add-hook 'perl-mode-hook 'hs-minor-mode) (add-hook 'php-mode-hook 'hs-minor-mode) (add-hook 'emacs-lisp-mode-hook 'hs-minor-mode) ;;end ;; 支持emacs和外部程序的粘贴 (setq x-select-enable-clipboard t) ;;end ;;end ;; 颜色主题: http://download.gna.org/color-theme/ (require 'color-theme) (color-theme-initialize) (color-theme-midnight) ;;end ;; 打开图片显示功能 (auto-image-file-mode t) ;;end ;; c/c++ 设置 (defun my-c-mode-hook() ;;设置编译命令为make (setq compile-command "make") ;;设置c/c++风格 (c-set_style "stroustrup") (setq tab-width 4 indent-tabs-mode nil) ;;贪心删除 (c-toggle-hungry-state 1) ;;ctrl+` 代码折叠 (define-key c-mode-base-map [(control\`)] 'hs-toggle-hiding) ;; F5:编译 (define-key c-mode-base-map (f5) 'compile) ) (add-hook 'c-mode-hook 'my-c-mode-hook) (add-hook 'c++-mode-hook 'my-c-mode-hook) ;;end ;;快捷键设置 ;; F1:最大化当前buffer: (global-set-key [(f1)] 'delete-other-windows) ;; F2:切换到dired模式 (global-set-key [(f2)] 'dired) ;; F3:切换到shell模式 (global-set-key [(f3)] 'ansi-term) ;; F4:关闭buffer (global-set-key [(f4)] 'kill-buffer-and-window) ;; F5:编译 (global-set-key (kbd "<f5>") 'compile) ;; F6:跳到另一个窗口 (global-set-key [(f6)] 'other-window) ;; F7:打开speedbar (global-set-key (kbd "<f7>") 'speedbar) ;; F9:GDB (global-set-key [(f9) 'gdb]) ;; F10:GDB NEXT (global-set-key [(f10)] 'gud-next) ;; F11:GDB STEP (global-set-key [(f11)] 'gud-step)
作者: firefoxmmx 发布时间: 2009-11-23
我原来还遇到过一次自己只改了.emacs忘了重新编译elc文件导致改的东西没运行-_-
作者: arakarak 发布时间: 2009-11-25
其中ropemacs的补全可以和ido结合起来,用起来极爽, semantic很慢,很少用,一般cscope就够用了
作者: arakarak 发布时间: 2009-11-25
-------------------------------
还有就是,emacs主要拿来做c/c++的开发,有时候也写写python(在学习阶段),shell,和php(在学习阶段)
作者: firefoxmmx 发布时间: 2009-11-26
作者: firefoxmmx
.emacs的配置文件要自己重新编译么? 我一直不知道,请问怎么编译(emacs方面我是小白),
|
作者: arakarak 发布时间: 2009-11-26
Compiling file /home/hooxin/.emacs at Thu Nov 26 10:51:18 2009 Entering directory `/home/hooxin/' .emacs:29:2:Warning: `set-default-font' is an obsolete function (as of Emacs 23.1); use `set-frame-font' instead. .emacs:53:32:Warning: variable assignment to constant `nil' .emacs:59:1:Error: Cannot open load file: session Compiling file /home/hooxin/.emacs at Thu Nov 26 10:51:18 2009 Entering directory `/home/hooxin/' .emacs:29:2:Warning: `set-default-font' is an obsolete function (as of Emacs 23.1); use `set-frame-font' instead. .emacs:53:32:Warning: variable assignment to constant `nil' .emacs:59:1:Error: Cannot open load file: session Compiling file /home/hooxin/.emacs at Thu Nov 26 10:51:18 2009 Entering directory `/home/hooxin/' .emacs:29:2:Warning: `set-default-font' is an obsolete function (as of Emacs 23.1); use `set-frame-font' instead. .emacs:53:32:Warning: variable assignment to constant `nil' .emacs:59:1:Error: Cannot open load file: session Compiling file /home/hooxin/.emacs at Thu Nov 26 10:51:18 2009 Entering directory `/home/hooxin/' .emacs:29:2:Warning: `set-default-font' is an obsolete function (as of Emacs 23.1); use `set-frame-font' instead. .emacs:53:32:Warning: variable assignment to constant `nil' .emacs:59:1:Error: Cannot open load file: session
作者: firefoxmmx 发布时间: 2009-11-26
作者: firefoxmmx 发布时间: 2009-11-26
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintfull
Emacs.FontBackend: xft
作者: ibear 发布时间: 2009-11-27
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28