页面

2010-02-18

emacs画表时指定画表符号

Characters used to recognize/draw the borders of the table can be specified with the help of the following variables:

table-cell-horizontal-chars

Contains a string. All characters in string are valid horizontal delimiters for the table. The first character of the string is used for output.

table-cell-horizontal-char

Contains the character used as the vertical delimiter. “|” by default.

table-cell-intersection-char

Contains the character that appears at the intersection of rows and columns. “+” is the default.

The following settings give interesting results. They use utf-8 characters to draw continuous lines for the border of the table. Arguably, your font should support these character to display the desired effect.

(setq table-cell-horizontal-chars "\u2501")
(setq table-cell-vertical-char ?\u2503)
(setq table-cell-intersection-char ?\u254B)

没有评论: