1. 程式人生 > >emacs單詞首字母,單詞,區域大小寫轉換

emacs單詞首字母,單詞,區域大小寫轉換

cells left The tab cin n) 首字母 大小寫 blog

從光標開始,處理單詞後半部分:

快捷鍵說明
M-c (capitalize-word) 首字母改為大寫
M-u (upcase-word) 全部改為大寫
M-l (downcase-word) 全部改為小寫

從光標位置開始,處理單詞前半部分

快捷鍵說明
M-- M-c negtive-argument; capitalize-word
M-- M-u negtive-argument; upcase-word
M-- M-l negtive-argument; downcase-word

改變選定區域的大小寫

快捷鍵說明
C-x C-l (downcase-region) 選定區域全部改為小寫
C-x C-u (upcase-region) 選定區域全部改為大寫

參考:

http://www.cnblogs.com/panos/archive/2013/01/21/2869393.html

emacs單詞首字母,單詞,區域大小寫轉換