summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-03-14 13:55:54 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-03-14 13:55:54 +0100
commitbf2acd292b9134a6758c3ca2cc303ae6793c27f8 (patch)
tree46eab6e10fe23a85afa5de03a8f8fcfc5e54229c
parenta5d8b9685e0410f6ae2a0fe6d62ea09aff6de5b1 (diff)
Add Paste section.
-rw-r--r--init.org34
1 files changed, 34 insertions, 0 deletions
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
<<pretty-symbols>>
<<resize-dynamically>>
<<emms-lazy>>
+<<paste>>
<<initial-after-packages>>
<<org-mode-lazy>>
<<magit-lazy>>