X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/837dacf954d08ddfafea637de14254f6cf196617..d7e1ea831d7803a040135edf00d224ba6e80f613:/init.org?ds=inline diff --git a/init.org b/init.org index cf19fbf..1c847ff 100644 --- a/init.org +++ b/init.org @@ -645,6 +645,19 @@ Enable =winner-mode=. (cons msg code))) #+end_src +*** Search for non-ASCII characters + +I’d like non-ASCII characters such as ‘’“”«»‹›áⓐ𝒶 to be selected when +I search for their ASCII counterpart. Shoutout to [[http://endlessparentheses.com/new-in-emacs-25-1-easily-search-non-ascii-characters.html][endlessparentheses]] +for this. + +#+begin_src emacs-lisp +(setq search-default-mode #'char-fold-to-regexp) + +;; uncomment to extend this behaviour to query-replace +;; (setq replace-char-fold t) +#+end_src + ** Bindings #+begin_src emacs-lisp @@ -980,7 +993,9 @@ Not just how I do git, but /the/ way to do git. (setq magit-repository-directories '(("~/.emacs.d/" . 0) ("~/src/git/" . 1))) - (push (cons [unpushed status] 'show) magit-section-initial-visibility-alist) + (nconc magit-section-initial-visibility-alist + '(([unpulled status] . show) + ([unpushed status] . show))) :custom-face (magit-diff-file-heading ((t (:weight normal))))) #+end_src