Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

Pragmatic Emacs: Use org-mode tables and structures in emails and elsewhere

$
0
0

I love the way that org-mode allows you to add simple clean structures to your text, withlists andtables. You can get some of that functionality in other modes by using orgstruct-mode and orgtbk-mode , which are part of org-mode .

Enable these minor modes in any major mode for one-off use with M-x orgstruct++-mode or M-x orgtbl-mode and you can use the normal org-mode commands to create lists and tables. I find this especially useful in emails, so I use this code in myemacs config file to automatically enable these for message-mode

;; use org structures and tables in message mode (add-hook 'message-mode-hook 'turn-on-orgtbl) (add-hook 'message-mode-hook 'turn-on-orgstruct++)


Viewing all articles
Browse latest Browse all 11063

Trending Articles