NHỮNG CÂU HỎI THƯỜNG GẶP VỀ LINUX - Trang 57

Những câu hỏi thường gặp về Linux

Also refer to the questions, “Tại sao card PCMCIA của tôi không hoạt động sau khi nâng cấp hạt
nhân?

” và “Làm thế nào để LILO khởi động kernel image?”

H:

Can Linux Use More than 3 Serial Ports bởi Sharing Interrupts?

Đ:

Yes, but you won’t be able to use simultaneously two ordinary ports which share an interrupt

(without some trickery). This is a limitation of the ISA Bus architecture.

See the Serial HOWTO for information about possible solutions và workarounds for this problem.

H:

Cấu hình thiết lập mặc định cho Emacs

Đ:

Create a file in your home directory named [.emacs] with the Emacs Lisp commands that you want

to run every time Emacs starts up. You won’t see the file in the directory listing. (The leading ’.’ tells ls
not to display it, unless you use the

-a

command line switch with ls.)

Any kind of Emacs Lisp statement will work in the [.emacs] file, including entire

defuns

. Emacs uses

lisp variables và statements extensively, và many of the editing functions are written in Emacs Lisp. For
example, to enable word wrapping whenever you edit a file that ends with [.txt], add the following
statement. This is from the Emacs Texinfo help document ( F1-i, then m

Emacs

Return

):

(add-hook text-mode-hook

’(lambda () (auto-fill-mode1)))

This adds a statement that calls a hook function whenever a text editing mode is entered for that buffer.
The value of

text-mode-hook

, which is a variable, to

auto-fill-mode

, which is a function.

If you want to turn off the menu bar tại the top of each Emacs frame, add this statement:

(menu-bar-mode -1)

And if you want to include an Emacs Lisp program that someone has written, like [msb.el] (an
enhanced, pop-up buffer menu), make sure the lisp file is in a directory where Emacs can find it
(usually it will be named Site-lisp), và add these statements in the [.emacs] file:

(require ’msb)

(msb-mode 1)

Most tasks have several possible solutions in Emacs Lisp. Any task that can be programmed in Emacs
Lisp is valid in the [.emacs] file. For more information, consult the Texinfo documentation. There is also
a FAQ list for Emacs (refer to: What other FAQ’s are there for Linux? ).

56

Liên Kết Chia Sẽ

** Đây là liên kết chia sẻ bới cộng đồng người dùng, chúng tôi không chịu trách nhiệm gì về nội dung của các thông tin này. Nếu có liên kết nào không phù hợp xin hãy báo cho admin.