![]() Got this tip from a post by Bozhidar Batsov.Ī better name would maybe be ct/mark-paragraph-dwim because it’s context sensitive and does different things in different modes. ![]() (derived-mode-p 'outline-mode) will also return non-nil when visiting an org-mode buffer, since org-mode is derived from outline-mode. I’m using derived-mode-p to test for both same modes, and derived modes so e.g. On top of it, Commander One is a full-fledged file manager with a dual-pane interface that helps you to open two files simultaneously. The app is fully compatible with Big Sur and offers resilient efficiency and stability to Mac devices. Didn’t even know it was bound to C-c RET until I looked for a suitable function. Commander One is the free Finder alternative for Mac users in 2022. It helps you to do system deployment, bare metal backup. Update: Screw it, I just added the HTML variant. Clonezilla is a partition and disk imaging/cloning program similar to True Image or Norton Ghost. select an enclosing HTML element in web-mode or a function or type or other structural element in C code or Swift. The full list of contributors to Org mode is maintained in Worg and you can also check the manuals acknowledgments. ( defun ct/mark-paragraph () "Mark the paragraph or structural element, depending on the mode." ( interactive ) ( cond (( derived-mode-p 'org-mode ) ( org-mark-element )) (( derived-mode-p 'web-mode ) ( web-mode-mark-and-expand )) ( t ( mark-paragraph ))))
0 Comments
Leave a Reply. |