Tôi đã thử theo lời khuyên được thu thập từ các tìm kiếm của Google nhưng tôi không thể làm cho nó hoạt động. Tệp ~/.emacs.el
của tôi chứa các thông tin sau:Làm cách nào để đặt phông chữ mặc định (Inconsolata) trong tệp .emacs.el của tôi trong Ubuntu?
;; Set color scheme
(require 'color-theme)
(load-file "/home/manoj/Dropbox/conf/themes/color-theme-chocolate-rain.el")
(color-theme-chocolate-rain)
;; Set font
;; (set-default-font "-unknown-Inconsolata-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1")
;; Insert four spaces on tab
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq indent-line-function 'insert-tab)
Tôi đã nhận xét dòng cấu hình phông chữ khi nó không hoạt động. Tôi đang sử dụng GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK + Phiên bản 2.18.0) của năm 2009-09-27 trên palmer, được sửa đổi bởi Debian trên Ubuntu Karmic.
Và voilà, nó hoạt động. Cảm ơn. –
Niềm vui của tôi. Thưởng thức :) – unutbu
Lưu ý nhanh: '' 'set-default-font''' đã lỗi thời trên Emacs 24. Sử dụng set-frame-font ;-) –