+ -
当前位置:首页 → 问答吧 → 疑问,我的emacs中文的反锯齿效果打不开,要怎么才可以打开呢?

疑问,我的emacs中文的反锯齿效果打不开,要怎么才可以打开呢?

时间:2009-11-19

来源:互联网

rt~~
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没问题。

emacs的22和23可以看成两个分支,我几年前就在用cvs的emacs23了

作者: hpo3   发布时间: 2009-11-20

没有配置字体的部分。。

作者: firefoxmmx   发布时间: 2009-11-22

我的字体配置部分,用的是雅黑+consolas,可以改成你喜欢的字体,不过最好用等宽字体

(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

是所有的快捷键都不起作用还是个别的不起作用?启动时 *Messages* buffer里有错误或警告提示么?
我原来还遇到过一次自己只改了.emacs忘了重新编译elc文件导致改的东西没运行-_-

作者: arakarak   发布时间: 2009-11-25

自动补全菜单,作python开发的话可以用ropemacs,c++开发的话可以用semantic-ia-complete-symbol-menu
其中ropemacs的补全可以和ido结合起来,用起来极爽, semantic很慢,很少用,一般cscope就够用了

作者: arakarak   发布时间: 2009-11-25

.emacs的配置文件要自己重新编译么? 我一直不知道,请问怎么编译(emacs方面我是小白),
-------------------------------
还有就是,emacs主要拿来做c/c++的开发,有时候也写写python(在学习阶段),shell,和php(在学习阶段)

作者: firefoxmmx   发布时间: 2009-11-26

引用:
作者: firefoxmmx
.emacs的配置文件要自己重新编译么? 我一直不知道,请问怎么编译(emacs方面我是小白),
.emacs 默认是不被编译的,可以用 M-x byte-compile-file 编译成bytecode形式的 .emacs.elc文件,这样加载速度能提高一点,如果你没手工编译过就应该不是这个问题了

作者: 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

怎么让多个文件在一个EMACS里打开(一打开BUFFER的形式)?

作者: firefoxmmx   发布时间: 2009-11-26

.Xresources或.Xdefaults

Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintfull

Emacs.FontBackend: xft

作者: ibear   发布时间: 2009-11-27

热门下载

更多