【发布时间】:2012-06-10 21:10:55
【问题描述】:
在answer 中,我注意到:
;; Align with spaces only
(defadvice align-regexp (around align-regexp-with-spaces)
"Never use tabs for alignment."
(let ((indent-tabs-mode nil))
ad-do-it))
(ad-activate 'align-regexp)
这个sounds很有前途,但是……它有什么作用?!
我在代码块上尝试了eval-region。但对我来说,它所做的只是将以下内容添加到 align-regexp 文档中:
建议使用此功能。
围绕建议`align-regexp-with-spaces':
切勿使用制表符进行对齐。
我似乎无法实际使用align-regexp-with-spaces,如果这应该是效果......我错过了什么?
我使用的是 GNU Emacs 版本 24.0.96.1 (i386-mingw-nt6.1.7601)。
【问题讨论】:
标签: emacs elisp advising-functions defadvice