;(transient-mark-mode 1)(make-variable-buffer-local'transient-mark-mode)(put'transient-mark-mode'permanent-localt)(setq-defaulttransient-mark-modet);enables C-u C-<SPC>, to return to last mark, followed by C-<SPC> to cycle through all marks set(setqset-mark-command-repeat-popt);autofill-mode(bind-key"C-c q"'auto-fill-mode)
Unfill-Paragraph
;unfill paragraph(defununfill-paragraph(&optionalregion)"Takes a multi-line paragraph and makes it into a single line of text."(interactive(progn(barf-if-buffer-read-only)'(t)))(let((fill-column(point-max));; This would override `fill-column' if it's an integer.(emacs-lisp-docstring-fill-columnt))(fill-paragraphnilregion)))
Expand-Region
;useful packages(use-packageexpand-region:afterhydra:config(require'expand-region)(use-packagechange-inner:config(require'change-inner));end change inner(defunejmr-mark-line()"Mark the current line."(interactive)(end-of-line)(set-mark(point))(beginning-of-line)));end use-package expand-region
(setqbrowse-url-browser-function'browse-url-default-browser)(setqbrowse-url-firefox-programfirefox-p)(setqauto-window-vscrollnil);browse-url in this shortcut or hyrda(bind-key"C-c C-o"'browse-url)
;custom function print buffer in browser.(defunprint-buffer-to-browser()(interactive)(browse-url-of-buffer(htmlize-buffer)));custom function print region to browser(defunprint-region-to-browser()(interactive)(if(use-region-p)(setqbeg(region-beginning)end(region-end)))(browse-url-of-buffer(htmlize-regionbegend)))
Browser Hydra
;generate title for hydra(defvarbrowser-title(with-octicon"globe""USE BROWSER")):bind("<C-m> b".Browse-Web_/body):pretty-hydra(Browse-Web_(:colorblue:quit-key"q":titlebrowser-title)("Search Engines"(("d"engine/search-SEARCHENGINENAME"Duckduckgo"));end search"Other");end other"Send Local Files To Browser"(("u"browse-url"Browse URL At Point")("P"print-buffer-to-browser"Print Buffer To Browser")("p"print-region-to-browser"Print Region To Browser")("e"browse-url-of-buffer"Render Buffer With Browser")("h"hydra-helm/body"Return To Helm":colorblue)("<SPC>"nil"QUIT":colorblue));end local);end heads);end browse-web hydra);end use-package engine-mode