diff --git a/.project.el.gpg b/.project.el.gpg index 7a2d5c0..85614ec 100644 Binary files a/.project.el.gpg and b/.project.el.gpg differ diff --git a/src/archive.org b/src/archive.org index e343752..6456215 100644 --- a/src/archive.org +++ b/src/archive.org @@ -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:
  • @@ @@html:@@ 2019-07-28: @@html:@@ [[file:posts/autoload-emacs-script-by-project.org][Autoload Script by project]] @@html:@@ @@html:
  • @@ +@@html:
  • @@ @@html:@@ 2019-07-28: @@html:@@ [[file:posts/project-el/index.org][Autoload Script by project]] @@html:@@ @@html:
  • @@ @@html:
  • @@ @@html:@@ 2019-07-07: @@html:@@ [[file:posts/2019-07-04-static-org-publish.org][Static blog with org-mode]] @@html:@@ @@html:
  • @@ #+end_archive diff --git a/src/posts/project-el/auto-load-project.el b/src/posts/project-el/auto-load-project.el index 2bdd2c4..25fd20a 100644 --- a/src/posts/project-el/auto-load-project.el +++ b/src/posts/project-el/auto-load-project.el @@ -14,13 +14,12 @@ (defvar y/trusted-gpg-key-fingerprints '("448E9FEF4F5B86DE79C1669B0000000000000000") "The list of GPG fingerprint you trust when decrypting a gpg file. - You can retrieve the fingerprints of your own private keys - with: `gpg --list-secret-keys' (take care of removing the - spaces when copy/pasting here)") +You can retrieve the fingerprints of your own private keys +with: `gpg --list-secret-keys' (take care of removing the +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)) @@ -46,7 +45,7 @@ (defun y/load-project-file () "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) (when (projectile-project-p) (lexical-let* ((current-project-root (projectile-project-root))