LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1907|回复: 16

[已严重跑题 java auto complete - JDEE 等]emacs字体问题 应该装哪个包

[复制链接]
发表于 2009-7-22 21:52:27 | 显示全部楼层 |阅读模式
打开emacs时提示如下:

  1. Warning: no fonts matching `-*-fixed-medium-r-normal-*-16-*-*-*-*-*-iso8859-1' available [2 times]
  2. Warning: no fonts matching `-*-*-medium-r-normal-*-16-*-*-*-*-*-iso8859-1' available
  3. Warning: no fonts matching `-*-*-*-r-normal-*-16-*-*-*-*-*-iso8859-1' available
  4. Warning: no fonts matching `-*-*-*-*-normal-*-16-*-*-*-*-*-iso8859-1' available
  5. Warning: no fonts matching `-*-*-*-*-*-*-16-*-*-*-*-*-iso8859-1' available [2 times]
复制代码


貌似字体问题 不知道应该装哪个包?
GNU Emacs 22.3.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7)
of 2009-05-31 on Gentoo
发表于 2009-7-22 22:05:24 | 显示全部楼层
这时emacs22下的字体配置问题吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-22 22:17:39 | 显示全部楼层

  1. (custom-set-variables
  2.   ;; custom-set-variables was added by Custom.
  3.   ;; If you edit it by hand, you could mess it up, so be careful.
  4.   ;; Your init file should contain only one such instance.
  5.   ;; If there is more than one, they won't work right.
  6. '(column-number-mode t)
  7. '(indicate-empty-lines t)
  8. '(inhibit-startup-screen t))
  9. (custom-set-faces
  10.   ;; custom-set-faces was added by Custom.
  11.   ;; If you edit it by hand, you could mess it up, so be careful.
  12.   ;; Your init file should contain only one such instance.
  13.   ;; If there is more than one, they won't work right.
  14. )
  15. (put 'upcase-region 'disabled nil)



  16. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  17. ;; All backup files move to a backup directory
  18. ;;
  19. (setq backup-directory-alist (quote (("." . "~/.emacs_backups"))))
  20. (setq version-control t)
  21. (setq kept-old-versions 2)
  22. (setq kept-new-versions 5)
  23. (setq delete-old-versions t)
  24. (setq backup-directory-alist '(("." . "~/.emacs_backups")))
  25. (setq backup-by-copying t)
  26. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



  27. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  28. ;;; cperl-mode is preferred to perl-mode                                        ;;; "Brevity is the soul of wit" <foo at acm.org>
  29. (defalias 'perl-mode 'cperl-mode)
  30. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



  31. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  32. ;;; swi-prolog mode
  33. (autoload 'run-prolog "prolog" "Start a Prolog sub-process." t)
  34. (autoload 'prolog-mode "prolog" "Major mode for editing Prolog programs." t)
  35. (autoload 'mercury-mode "prolog" "Major mode for editing Mercury programs." t)
  36. (setq prolog-system 'swi)
  37. (setq auto-mode-alist (append '(("\\.pl$" . prolog-mode)
  38.                                ("\\.m$" . mercury-mode))
  39.                               auto-mode-alist))
  40. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


  41. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  42. ;;; Standard ML - .ml as postfix
  43. (setq auto-mode-alist (append '(("\\.ml$" . sml-mode))
  44.                               auto-mode-alist))
  45. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
复制代码

我的.emacs只有一些语言配置为了区分prolog和perl的.pl文件啊什么的
为了使用auto-complete
http://www.emacswiki.org/emacs/AutoComplete
我加了下面两句
就是加上后才有这个提示
(require 'auto-complete)
(global-auto-complete-mode t)

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2009-7-23 02:07:14 | 显示全部楼层
xorg-x11 ebuild里font部分
回复 支持 反对

使用道具 举报

发表于 2009-7-23 06:05:42 | 显示全部楼层
Post by 杨珂;2008596

  1. (custom-set-variables
  2.   ;; custom-set-variables was added by Custom.
  3.   ;; If you edit it by hand, you could mess it up, so be careful.
  4.   ;; Your init file should contain only one such instance.
  5.   ;; If there is more than one, they won't work right.
  6. '(column-number-mode t)
  7. '(indicate-empty-lines t)
  8. '(inhibit-startup-screen t))
  9. (custom-set-faces
  10.   ;; custom-set-faces was added by Custom.
  11.   ;; If you edit it by hand, you could mess it up, so be careful.
  12.   ;; Your init file should contain only one such instance.
  13.   ;; If there is more than one, they won't work right.
  14. )
  15. (put 'upcase-region 'disabled nil)



  16. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  17. ;; All backup files move to a backup directory
  18. ;;
  19. (setq backup-directory-alist (quote (("." . "~/.emacs_backups"))))
  20. (setq version-control t)
  21. (setq kept-old-versions 2)
  22. (setq kept-new-versions 5)
  23. (setq delete-old-versions t)
  24. (setq backup-directory-alist '(("." . "~/.emacs_backups")))
  25. (setq backup-by-copying t)
  26. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



  27. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  28. ;;; cperl-mode is preferred to perl-mode                                        ;;; "Brevity is the soul of wit" <foo at acm.org>
  29. (defalias 'perl-mode 'cperl-mode)
  30. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



  31. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  32. ;;; swi-prolog mode
  33. (autoload 'run-prolog "prolog" "Start a Prolog sub-process." t)
  34. (autoload 'prolog-mode "prolog" "Major mode for editing Prolog programs." t)
  35. (autoload 'mercury-mode "prolog" "Major mode for editing Mercury programs." t)
  36. (setq prolog-system 'swi)
  37. (setq auto-mode-alist (append '(("\\.pl$" . prolog-mode)
  38.                                ("\\.m$" . mercury-mode))
  39.                               auto-mode-alist))
  40. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


  41. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  42. ;;; Standard ML - .ml as postfix
  43. (setq auto-mode-alist (append '(("\\.ml$" . sml-mode))
  44.                               auto-mode-alist))
  45. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
复制代码

我的.emacs只有一些语言配置为了区分prolog和perl的.pl文件啊什么的
为了使用auto-complete
http://www.emacswiki.org/emacs/AutoComplete
我加了下面两句
就是加上后才有这个提示
(require 'auto-complete)
(global-auto-complete-mode t)


字体只是警告,错误是auto-complete ,它所在的目录是否加入了,还有就是重新下载auto-complete
回复 支持 反对

使用道具 举报

发表于 2009-7-23 09:19:38 | 显示全部楼层
楼主还在坚持emacs-22呢:)
插一句嘴,emacs-cvs已经进~x86/~amd64了。当时问你说还在mask,不想用,嘿嘿,这回……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-23 10:41:54 | 显示全部楼层
Post by zhou3345;2008693
楼主还在坚持emacs-22呢:)
插一句嘴,emacs-cvs已经进~x86/~amd64了。当时问你说还在mask,不想用,嘿嘿,这回……


我就是不用 哈哈哈哈
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-23 10:46:33 | 显示全部楼层
Post by galilette;2008657
xorg-x11 ebuild里font部分


没有理解。。。
这些fonts一定都有安装
# Some fonts
RDEPEND="${RDEPEND}
        media-fonts/ttf-bitstream-vera
        >=media-fonts/font-bh-type1-1
        >=media-fonts/font-adobe-utopia-type1-1.0.1
        >=media-fonts/font-adobe-100dpi-1"
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-23 10:52:45 | 显示全部楼层
Post by waterloo2005;2008671
字体只是警告,错误是auto-complete ,它所在的目录是否加入了,还有就是重新下载auto-complete


貌似你说得对 是auto-complete的问题
我装了所有的misc字体 警告没有了 但是仍然有错


;;; Installation:
;;
;; To use this extension, locate all .el files of this package to your load-path directory.
;;
;;     $ cp auto-complete-x.x.x/*.el ~/.emacs.d/
;;
;; And write following code into your .emacs.
;;
;;     (require 'auto-complete)
;;     (global-auto-complete-mode t)
我的auto-complete是按照要求安装的

yangke@Gentoo ~ $ ls .emacs.d/
auto-complete.el        auto-complete-extension.el  auto-complete-verilog.el
auto-complete-etags.el  auto-complete-octave.el     auto-save-list
yangke@Gentoo ~ $

yangke@Gentoo ~ $ grep auto-c .emacs
(require 'auto-complete)
(global-auto-complete-mode t)
yangke@Gentoo ~ $

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2009-7-23 12:57:00 | 显示全部楼层
Post by 杨珂;2008719
貌似你说得对 是auto-complete的问题
我装了所有的misc字体 警告没有了 但是仍然有错


;;; Installation:
;;
;; To use this extension, locate all .el files of this package to your load-path directory.
;;
;;     $ cp auto-complete-x.x.x/*.el ~/.emacs.d/
;;
;; And write following code into your .emacs.
;;
;;     (require 'auto-complete)
;;     (global-auto-complete-mode t)
我的auto-complete是按照要求安装的

yangke@Gentoo ~ $ ls .emacs.d/
auto-complete.el        auto-complete-extension.el  auto-complete-verilog.el
auto-complete-etags.el  auto-complete-octave.el     auto-save-list
yangke@Gentoo ~ $

yangke@Gentoo ~ $ grep auto-c .emacs
(require 'auto-complete)
(global-auto-complete-mode t)
yangke@Gentoo ~ $

(require 'auto-complete)
(global-auto-complete-mode t)
这两行是对的,它好像是没找到auto-complete.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表