4 ms·
Do you have a list of favorites?
by Forge36 3y ago
Do you have a list of favorites?
- AceJohnny2 3y agoOn Mac, assign traditional keybinds to Command/⌘ shortcuts (⌘-C/V for copy-paste, -S for save, etc). Display the current column number in the modeline with (setq column-number-mode t) Delete the selected area when overwriting by enabling (setq delete-selection-mode t) Save sessions (all open buffers/files) automatically on quit with (setq desktop-save-mode t) Display line numbers in the left gutter with (setq global-linum-mode t) Wrap lines (with a convenient icon in the gutter to indicate line continuation) with (setq global-visual-line-mode t). Bonus: linum-mode compatible! Skip that startup screen with (setq inhibit-startup-screen t) Remove the limited and redundant icon toolbar with (setq tool-bar-mode nil) Make emacs automatically refresh buffers whose underlying file has changed (and has no local unsaved modifications) with (setq global-auto-revert-mode t) All of the above variables can also be customized through Emacs' excellent Customize, which is better than individually doing each (setq ...) I wrote above. And these are just from a quick skim of my .emacs file... Decades ago, when a college friend espoused the merits of Emacs, I didn't get it because my first experience with a vanilla setup was so... limited. This is also why people will laud more "batteries-included" distributions like Spacemacs or Doom Emacs.
- monsieurbanana 3y agoI agree that you need to customize Emacs rather heavily before it can be used as a "modern" editor. I'm not a fan of most of your changes though, which highlights how hard it is to have defaults that please everybody in something as complex as Emacs.
- pvaldes 3y agothe desktop-save-mode option is gold... thanks
- Forge36 3y agoThanks! I added ``` (setq column-number-mode t desktop-save-mode t display-line-numbers t global-auto-revert-mode t) (delete-selection-mode) (global-display-line-numbers-mode) ``` `delete-selection-mode` when set as a variable didn't work. `display-line-numbers` appears to replace `global-linum-mode`