From b877d6c6efb832d1b70df41d8c5f528eef85c78e Mon Sep 17 00:00:00 2001 From: rearman Date: Tue, 14 May 2024 17:09:09 -0400 Subject: [PATCH] Tweak visual line mode, unbind insert --- init.org | 45 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/init.org b/init.org index ca10f9a..a9884f4 100644 --- a/init.org +++ b/init.org @@ -212,9 +212,9 @@ A godsend. Finally, I can have visual-line-mode without having to read lines th :ensure t :custom (word-wrap t) - (visual-fill-column-enable-sensible-window-split t) - :config - (global-visual-line-mode t)) + (visual-fill-column-enable-sensible-window-split t)) + +(add-hook 'visual-line-mode-hook 'visual-fill-column-mode) #+END_SRC Also make a defun/binding to toggle it as needed. @@ -446,13 +446,15 @@ I want to strip all trailing whitespace on save, and I want to make all shell sc :PROPERTIES: :ID: 32d9a1c6-7890-4d05-b241-5dcb83e9b848 :END: -I don't want emacs to beep or blink at me, I want y/n instead of the default yes/no, I don't care for clicking on things in the minibuffer, I like seeing my commands echoed almost immediately, I want history to only show me unique commands, and I want case-insensitive buffer switching. +I don't want emacs to beep or blink at me, I want y/n instead of the default yes/no, I don't care for clicking on things in the minibuffer, I like seeing things echoed almost immediately, for keystrokes and eldoc. I want eldoc to stick to one line. I want history to only show me unique commands, and I want case-insensitive buffer switching. #+BEGIN_SRC emacs-lisp (setq ring-bell-function 'ignore use-short-answers t use-file-dialog nil echo-keystrokes 0.1 + eldoc-idle-delay 0 + eldoc-echo-area-use-multiline-p nil read-buffer-completion-ignore-case t history-delete-duplicates t) #+END_SRC @@ -511,6 +513,10 @@ Don't follow links with mouse-1, so I can select without having to use the keybo :PROPERTIES: :ID: 225b0716-b552-4166-b71f-0b54256a08a8 :END: +**** Prettify Symbols +:PROPERTIES: +:ID: f221ed0a-d6ec-4182-a80c-76d6bf186d0f +:END: I want nice symbols to look at #+BEGIN_SRC emacs-lisp (setq prettify-symbols-alist '(("lambda" . 955) @@ -522,6 +528,15 @@ I want nice symbols to look at (global-prettify-symbols-mode t) #+END_SRC +**** Visual Line Mode indicators +:PROPERTIES: +:ID: 16667fd4-a437-4bc1-9d84-3f5cd622ece6 +:END: +Show arrows when a line wraps +#+BEGIN_SRC emacs-lisp +(setq visual-line-fringe-indicators '(left-curly-arrow right-curly-arrow)) +#+END_SRC + *** Parens :PROPERTIES: :ID: de1b05fb-6127-485d-a4f2-2d2476e0fc4c @@ -920,6 +935,16 @@ I made these bindings to put my more-used commands on better keys, and swap them (keymap-global-set "C-S-S" 'isearch-forward-regexp) (keymap-global-set "C-S-R" 'isearch-backward-regexp) #+END_SRC + +**** Insert Key +:PROPERTIES: +:ID: cf443c0b-3799-4fe7-817f-a35f614fe336 +:END: +I keep accidentally enabling ~overwrite-mode~, so disable the ~insert~ key +#+BEGIN_SRC emacs-lisp +(keymap-global-set "" nil) +#+END_SRC + *** Elisp/Eval bindings :PROPERTIES: :ID: 05c8bf80-e35f-49bc-97b0-b6caccb63ab6 @@ -1205,11 +1230,12 @@ Start folded, and show stars as indentation. :PROPERTIES: :ID: d7161d70-f42c-43da-b454-974604d2b005 :END: -Don't split my line, just make a new one, follow links with return, export tables as csvs, and use an absolute path for other links (while shortening home to ~). +Don't split my line, just make a new one, follow links with return, export tables as csvs, set the default export backends, and use an absolute path for other links (while shortening home to ~). #+BEGIN_SRC emacs-lisp (setq org-M-RET-may-split-line nil org-return-follows-link t org-table-export-default-format "orgtbl-to-csv" + org-export-backends '(ascii html latex md) org-link-file-path-type 'absolute) #+END_SRC @@ -1252,13 +1278,9 @@ Org special keys - do logical things with =C-a/e/k=, and adjust subtree level wh :PROPERTIES: :ID: e7426184-8474-45d8-b0c4-a4a2ed99101d :END: -Don't open links in another window, just use the current one. This variable is otherwise as default. +Don't open links in another window, just use the current one. #+BEGIN_SRC emacs-lisp -(setq org-link-frame-setup '((vm . vm-visit-folder-other-frame) - (vm-imap . vm-visit-imap-folder-other-frame) - (gnus . org-gnus-no-new-news) - (file . find-file) - (wl . wl-other-frame))) +(setq org-link-frame-setup '((file . find-file))) #+END_SRC *** Directories :PROPERTIES: @@ -1741,6 +1763,7 @@ I wanted something like what the Genera environment has, where putting in a fina (defun ielm-send-on-close-paren () "Makes ielm act somewhat like genera. Makes a closing paren execute the sexp." + (interactive) (send-on-close-paren 'ielm-send-input)) #+END_SRC *** Persistent command history -- 2.39.5