Nifty ability to encrypt sections of an org file
Plus, let's get some formatting for Telega messages.
This commit is contained in:
parent
45cd891452
commit
88f2b35e3f
2 changed files with 22 additions and 2 deletions
|
@ -152,7 +152,10 @@ I'm thinking the [[https://zevlg.github.io/telega.el/][Telega package]] would be
|
||||||
:config
|
:config
|
||||||
(setq telega-user-use-avatars nil
|
(setq telega-user-use-avatars nil
|
||||||
telega-use-tracking-for nil ; '(any pin unread)
|
telega-use-tracking-for nil ; '(any pin unread)
|
||||||
telega-chat-use-markdown-formatting t
|
;; Use org formatting for normal messages.
|
||||||
|
;; Want to send the org markup without formatting?
|
||||||
|
;; The `nil' sets that with `C-u' then Return:
|
||||||
|
telega-chat-input-markups '("org" nil)
|
||||||
telega-emoji-use-images t
|
telega-emoji-use-images t
|
||||||
; telega-completing-read-function #'ivy-completing-read
|
; telega-completing-read-function #'ivy-completing-read
|
||||||
telega-msg-rainbow-title nil)
|
telega-msg-rainbow-title nil)
|
||||||
|
|
|
@ -967,8 +967,25 @@ Need to make sure that Emacs will handle the prompts, and turn it on:
|
||||||
:config
|
:config
|
||||||
(setenv "GPG_AGENT_INFO" nil)
|
(setenv "GPG_AGENT_INFO" nil)
|
||||||
(epa-file-enable))
|
(epa-file-enable))
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Since I already (at this point in my file) have Org installed and running, the following code configures the encryption of certain header sections (see [[https://orgmode.org/worg/org-tutorials/encrypting-files.html][this tutorial]]). Headers with a =:crypt:tag (see =org-crypt-tag-matcher= to change it) will be encrypted.
|
||||||
|
|
||||||
|
To temporarily read an encrypted part, and call =M-x org-decrypt-entry= when the cursor is inside that section. Saving the file, will re-encrypt it.
|
||||||
|
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package org
|
||||||
|
:config
|
||||||
|
(require 'org-crypt)
|
||||||
|
|
||||||
|
(org-crypt-use-before-save-magic)
|
||||||
|
(setq org-tags-exclude-from-inheritance (quote ("crypt")))
|
||||||
|
;; GPG key to use for encryption
|
||||||
|
;; Either the Key ID or set to nil to use symmetric encryption.
|
||||||
|
(setq org-crypt-key nil))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Technical Artifacts :noexport:
|
* Technical Artifacts :noexport:
|
||||||
Let's provide a name so we can =require= this file:
|
Let's provide a name so we can =require= this file:
|
||||||
#+begin_src emacs-lisp :exports none
|
#+begin_src emacs-lisp :exports none
|
||||||
|
|
Loading…
Reference in a new issue