在回答中,我注意到:
;; 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)
这听起来很有希望,但是......它有什么作用?!
我尝试eval-region
了代码块。但对我来说,它所做的只是在align-regexp
文档中添加以下内容:
建议使用此功能。
around-advice `align-regexp-with-spaces':
永远不要使用制表符进行对齐。
我似乎无法实际使用align-regexp-with-spaces
,如果这应该是效果......我错过了什么?
我使用了 GNU Emacs 版本 24.0.96.1 (i386-mingw-nt6.1.7601)。