Adding signature and updating token
This commit is contained in:
parent
dc22f7d4aa
commit
b582016851
5 changed files with 42 additions and 8 deletions
configuration.nix
other-config
|
@ -142,7 +142,7 @@
|
|||
'';
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns = true;
|
||||
nssmdns4 = true;
|
||||
};
|
||||
|
||||
# Mullvadvpn
|
||||
|
@ -275,6 +275,7 @@
|
|||
ps.beautifulsoup4
|
||||
ps.dbus-python
|
||||
ps.matplotlib
|
||||
ps.pytz
|
||||
]))
|
||||
|
||||
gnome-tweaks
|
||||
|
|
Binary file not shown.
BIN
other-config/.password-store/old/oauth2_token3.gpg
Normal file
BIN
other-config/.password-store/old/oauth2_token3.gpg
Normal file
Binary file not shown.
|
@ -1008,6 +1008,10 @@ For example for when you're running code and immediately want to check the outpu
|
|||
(eval-after-load 'org
|
||||
(add-hook 'org-babel-after-execute-hook 'org-redisplay-inline-images))
|
||||
#+end_src
|
||||
*** Manual image resize in org available
|
||||
#+begin_src emacs-lisp
|
||||
(setq org-image-actual-width nil)
|
||||
#+end_src
|
||||
*** Indentation
|
||||
#+begin_src emacs-lisp
|
||||
(setq org-indent-indentation-per-level 2)
|
||||
|
@ -2840,16 +2844,18 @@ Zie ook [[*ORG-MSG (compose and save attachment)][ORG-MSG]] voor hooks:
|
|||
(when (re-search-forward "--text follows this line--" nil t)
|
||||
(delete-region (point) (point-max))
|
||||
(insert "\n\n\n\nGroetjes,\n\nMisha\n\n---\n\n"
|
||||
"/Lecturer Sciences/\n\n"
|
||||
"Amsterdam University College\n\n"
|
||||
"Science Park 113 | 1098 XG Amsterdam | The Netherlands\n\n"
|
||||
"[[https://mishathings.org][Blog]] [[https://social.edu.nl/@MishaVelthuis][Mastodon]] [[https://matrix.to/#/@misha:pub.solar][Matrix]]"
|
||||
"#+html:<div class=\"signature\">\n\n"
|
||||
"/Lecturer Sciences/\n\n"
|
||||
"Amsterdam University College\n\n"
|
||||
"Science Park 113 | 1098 XG Amsterdam | The Netherlands\n\n"
|
||||
"[[https://mishathings.org][Blog]] [[https://social.edu.nl/@MishaVelthuis][Mastodon]] [[https://matrix.to/#/@misha:pub.solar][Matrix]]"
|
||||
"\n\n#+html:</div>\n"
|
||||
))
|
||||
(message "update-buffer-text is running now")
|
||||
(run-with-timer 1 nil '(lambda ()
|
||||
(other-window 1)
|
||||
(goto-char (point-max))
|
||||
(previous-logical-line 15)))
|
||||
(previous-logical-line 17)))
|
||||
(save-excursion (mv/read-mail))
|
||||
)
|
||||
|
||||
|
@ -2880,13 +2886,37 @@ Zie ook [[*ORG-MSG (compose and save attachment)][ORG-MSG]] voor hooks:
|
|||
(buffer-substring-no-properties (1+ split-point) (point-max))))
|
||||
(org-export-show-temporary-export-buffer nil))
|
||||
(when content
|
||||
(with-temp-buffer
|
||||
(with-temp-buffer
|
||||
(insert
|
||||
;; "#+HTML_HEAD: <style type=\"text/css\">
|
||||
;; #+HTML_HEAD: signature {
|
||||
;; #+HTML_HEAD: background-color: #d9fcd4 ;
|
||||
;; #+HTML_HEAD: border-left: 5px solid #95ac92 ;
|
||||
;; #+HTML_HEAD: margin: 3em 1em;
|
||||
;; #+HTML_HEAD: padding: 3em 10px;
|
||||
;; #+HTML_HEAD: }
|
||||
;; #+HTML_HEAD: </style>"
|
||||
"#+HTML_HEAD: <style>
|
||||
#+HTML_HEAD: .signature {
|
||||
#+HTML_HEAD: background-color: #defada ; /* Light green background */
|
||||
#+HTML_HEAD: border-left: 5px solid #9cdb93 ; /* Dark green left border */
|
||||
#+HTML_HEAD: margin: 1em 0;
|
||||
#+HTML_HEAD: padding: 0.5em 10px;
|
||||
#+HTML_HEAD: }
|
||||
#+HTML_HEAD: blockquote {
|
||||
#+HTML_HEAD: background-color: #f0f0f0; /* Light gray background */
|
||||
#+HTML_HEAD: border-left: 5px solid #ccc; /* Gray left border */
|
||||
#+HTML_HEAD: margin: 1em 0;
|
||||
#+HTML_HEAD: padding: 0.5em 10px;
|
||||
#+HTML_HEAD: }
|
||||
#+HTML_HEAD: </style>"
|
||||
)
|
||||
(insert content)
|
||||
(write-file "/tmp/mail.org")
|
||||
(let ((org-export-with-author nil)
|
||||
(org-export-with-date nil)
|
||||
(org-html-postamble nil))
|
||||
(org-html-export-to-html nil nil nil t nil)
|
||||
(org-html-export-to-html nil nil nil nil nil)
|
||||
(rename-file (concat default-directory (file-name-sans-extension "mail.org") ".html") "/tmp/mail.html" t))))
|
||||
(when split-point
|
||||
(save-excursion
|
||||
|
|
3
other-config/emacs/snippets/org-mode/block-quote
Normal file
3
other-config/emacs/snippets/org-mode/block-quote
Normal file
|
@ -0,0 +1,3 @@
|
|||
#+begin_quote
|
||||
|
||||
#+end_quote
|
Loading…
Add table
Reference in a new issue