From 3a4ed53c8a25a3084cffaaa395add892865ecc57 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 18 Mar 2021 06:07:15 +0100 Subject: [PATCH] Get rid of id-manager I never really used it, especially since i have password-store installed everywhere. --- configuration.org | 40 ---------------------------------------- customizations.el | 1 - idm-db.gpg | Bin 696 -> 0 bytes 3 files changed, 41 deletions(-) delete mode 100644 idm-db.gpg diff --git a/configuration.org b/configuration.org index ce833f9..23b6ba5 100644 --- a/configuration.org +++ b/configuration.org @@ -874,33 +874,6 @@ to the beginning of the file." (0 font-lock-variable-name-face t))))))) #+END_SRC -** ~idm~ (ID manager) related functions - -*** Get specific fields from a record in ~idm~ - -#+BEGIN_SRC emacs-lisp -(defun gpolonkai/idm-record-get-field (record field) - "Get FIELD of an id-manager RECORD." - (let ((funcname (intern (concat "idm-record-" (symbol-name field))))) - (when (fboundp funcname) - (funcall funcname record)))) - -(defun gpolonkai/idm-get-field-for-account (account field) - "Get id-manager password for ACCOUNT." - (let ((db (idm-load-db)) - (lookup-record nil)) - (dolist (record (funcall db 'get-all-records) password) - (when (string= account (idm-record-name record)) - (setq lookup-record (gpolonkai/idm-record-get-field record field)))) - lookup-record)) - -(defmacro gpolonkai/idm-get-password-for-account (account) - `(gpolonkai/idm-get-field-for-account ,account 'password)) - -(defmacro gpolonkai/idm-get-id-for-account (account) - `(gpolonkai/idm-get-field-for-account ,account 'account-id)) -#+END_SRC - ** Jinja related *** Mark a string as translatable @@ -1384,19 +1357,6 @@ Now set up eshell. (save-place-file (expand-file-name ".places" user-emacs-directory))) #+END_SRC -** ID manager - -Manage credentials, AKA password manager. - -#+BEGIN_SRC emacs-lisp -(use-package id-manager - :config - (setq idm-database-file (expand-file-name "idm-db.gpg" user-emacs-directory)) - :bind - (:map gpolonkai/pers-map - ("i" . idm-open-list-command))) -#+END_SRC - ** EDiff #+BEGIN_SRC emacs-lisp diff --git a/customizations.el b/customizations.el index 158fca9..7f541c4 100644 --- a/customizations.el +++ b/customizations.el @@ -110,7 +110,6 @@ hover hungarian-holidays hungry-delete - id-manager ivy ivy-bibtex ivy-pass diff --git a/idm-db.gpg b/idm-db.gpg deleted file mode 100644 index cde03eca83438e7bed3b3d467d797f469af61372..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 696 zcmV;p0!RIY0t^GX{)$tXiMvDr5CE2?re#r{y|WY7+H+wpvQjrvtcDk)r}6V@Bx#b} zaLteVuRg!*Y$wM8sOmLUC^Gb!xqJGl=qVYwAiu}lY-tP(4mEX^6uCj#(Q=~1%gD1# zb+OJnw)XmEnokf)n+C|b#f4?2iR7ZrYdOY83PTMWm|hX<5#r}FtilIuzMs4kLAm@XA;!1RR z=?Pf{wvTRJ!X7-&m6yK;77K79GxgJL!^Z{}2i5>o<&_6+t{9|N6Kduu~?zH_2T1*pYyfF zUhr01m|#_Cfr#)3$C=snTWC+hvo-r=xO?z! zSZSf?xeLC(^Lw#CeqnZ$XK}Vjy9P@yR<4NkN)r+kXcivcdvD~SuD*w2@tP5Q6|YUT<&ng5*i`` eRPJ}^-G@3X>;fn1%BZtJ(x`}w$IUEbXzV-!iD6p+