From bf2acd292b9134a6758c3ca2cc303ae6793c27f8 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 14 Mar 2023 13:55:54 +0100 Subject: Add Paste section. --- init.org | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/init.org b/init.org index ef738d7..c08265a 100644 --- a/init.org +++ b/init.org @@ -206,6 +206,25 @@ Dired mode becomes much prettier with =all-the-icons=. (add-hook 'dired-mode-hook 'all-the-icons-dired-mode) #+END_SRC +I like the doom emacs modeline with buffer-appropriate icons. + +#+BEGIN_SRC elisp +(use-package doom-modeline + :after eshell ;Make sure it gets hooked after eshell + :init (doom-modeline-mode) + :custom + (doom-modeline-height 35) + (doom-modeline-bar-width 6) + (doom-modeline-lsp t) + (doom-modeline-github nil) + (doom-modeline-mu4e nil) + (doom-modeline-irc t) + (doom-modeline-minor-modes nil) + (doom-modeline-persp-name nil) + (doom-modeline-buffer-file-name-style 'truncate-except-project) + (doom-modeline-major-mode-icon nil)) +#+END_SRC + * Default fonts :PROPERTIES: :header-args: :noweb-ref default-fonts @@ -787,6 +806,20 @@ Load all of this lazily. (require 'yasnippet) #+END_SRC +* Paste +:PROPERTIES: +:header-args: :noweb-ref paste :noweb yes +:END: + +The =scpaste= package allows me to quickly paste text to my personal web site. It only needs to know where to place the text files and where they would be publicly accessible via HTTP. + +#+BEGIN_SRC elisp +(setq scpaste-http-destination "https://elephly.net/paste") +(setq scpaste-scp-destination "elephly.net:~/elephly.net/paste/") +(setq scpaste-scp-port "1022") +(setq scpaste-make-name-function #'scpaste-make-name-from-timestamp) +#+END_SRC + * Pretty symbols :PROPERTIES: :header-args: :noweb-ref pretty-symbols @@ -1551,6 +1584,7 @@ Having defined named code blocks in the sections above we can finally put them a <> <> <> +<> <> <> <> -- cgit v1.2.3