Fixes
This commit is contained in:
parent
5a96e41469
commit
1bf7a20242
BIN
.project.el.gpg
BIN
.project.el.gpg
Binary file not shown.
|
@ -2,12 +2,7 @@
|
|||
#+AUTHOR: Yann Esposito
|
||||
#+EMAIL: yann.esposito@gmail.com
|
||||
|
||||
* Articles
|
||||
:PROPERTIES:
|
||||
:ID: A238A3BD-18B5-42D8-8FB3-E522DB3795CC
|
||||
:PUBDATE: <2019-07-28 Sun 15:11>
|
||||
:END:
|
||||
#+begin_archive
|
||||
@@html:<li>@@ @@html:<span class="archive-item"><span class="archive-date">@@ 2019-07-28: @@html:</span>@@ [[file:posts/autoload-emacs-script-by-project.org][Autoload Script by project]] @@html:</span>@@ @@html:</li>@@
|
||||
@@html:<li>@@ @@html:<span class="archive-item"><span class="archive-date">@@ 2019-07-28: @@html:</span>@@ [[file:posts/project-el/index.org][Autoload Script by project]] @@html:</span>@@ @@html:</li>@@
|
||||
@@html:<li>@@ @@html:<span class="archive-item"><span class="archive-date">@@ 2019-07-07: @@html:</span>@@ [[file:posts/2019-07-04-static-org-publish.org][Static blog with org-mode]] @@html:</span>@@ @@html:</li>@@
|
||||
#+end_archive
|
||||
|
|
|
@ -19,8 +19,7 @@
|
|||
spaces when copy/pasting here)")
|
||||
|
||||
(defun y/get-encryption-key (file)
|
||||
"given a gpg encrypted file, returns the fingerprint of
|
||||
they key that encrypted it"
|
||||
"Return the fingerprint of they key that encrypted FILE."
|
||||
(string-trim-right
|
||||
(shell-command-to-string
|
||||
(concat
|
||||
|
@ -29,7 +28,7 @@
|
|||
"|awk '{print $4}'"))))
|
||||
|
||||
(defun y/trusted-gpg-origin-p (file)
|
||||
"Returns true if the file is encrypted with a trusted key"
|
||||
"Return non-nil if the FILE is encrypted with a trusted key."
|
||||
(member (y/get-encryption-key file) y/trusted-gpg-key-fingerprints))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue