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
|
#+AUTHOR: Yann Esposito
|
||||||
#+EMAIL: yann.esposito@gmail.com
|
#+EMAIL: yann.esposito@gmail.com
|
||||||
|
|
||||||
* Articles
|
|
||||||
:PROPERTIES:
|
|
||||||
:ID: A238A3BD-18B5-42D8-8FB3-E522DB3795CC
|
|
||||||
:PUBDATE: <2019-07-28 Sun 15:11>
|
|
||||||
:END:
|
|
||||||
#+begin_archive
|
#+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>@@
|
@@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
|
#+end_archive
|
||||||
|
|
|
@ -14,13 +14,12 @@
|
||||||
(defvar y/trusted-gpg-key-fingerprints
|
(defvar y/trusted-gpg-key-fingerprints
|
||||||
'("448E9FEF4F5B86DE79C1669B0000000000000000")
|
'("448E9FEF4F5B86DE79C1669B0000000000000000")
|
||||||
"The list of GPG fingerprint you trust when decrypting a gpg file.
|
"The list of GPG fingerprint you trust when decrypting a gpg file.
|
||||||
You can retrieve the fingerprints of your own private keys
|
You can retrieve the fingerprints of your own private keys
|
||||||
with: `gpg --list-secret-keys' (take care of removing the
|
with: `gpg --list-secret-keys' (take care of removing the
|
||||||
spaces when copy/pasting here)")
|
spaces when copy/pasting here)")
|
||||||
|
|
||||||
(defun y/get-encryption-key (file)
|
(defun y/get-encryption-key (file)
|
||||||
"given a gpg encrypted file, returns the fingerprint of
|
"Return the fingerprint of they key that encrypted FILE."
|
||||||
they key that encrypted it"
|
|
||||||
(string-trim-right
|
(string-trim-right
|
||||||
(shell-command-to-string
|
(shell-command-to-string
|
||||||
(concat
|
(concat
|
||||||
|
@ -29,7 +28,7 @@
|
||||||
"|awk '{print $4}'"))))
|
"|awk '{print $4}'"))))
|
||||||
|
|
||||||
(defun y/trusted-gpg-origin-p (file)
|
(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))
|
(member (y/get-encryption-key file) y/trusted-gpg-key-fingerprints))
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,7 +45,7 @@
|
||||||
|
|
||||||
(defun y/load-project-file ()
|
(defun y/load-project-file ()
|
||||||
"Loads the `y/project-file' for a project. This is run once
|
"Loads the `y/project-file' for a project. This is run once
|
||||||
after the project is loaded signifying project setup."
|
after the project is loaded signifying project setup."
|
||||||
(interactive)
|
(interactive)
|
||||||
(when (projectile-project-p)
|
(when (projectile-project-p)
|
||||||
(lexical-let* ((current-project-root (projectile-project-root))
|
(lexical-let* ((current-project-root (projectile-project-root))
|
||||||
|
|
Loading…
Reference in a new issue