aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbard <[email protected]>2024-01-09 05:30:32 -0500
committerbard <[email protected]>2024-01-09 05:30:32 -0500
commitf370cfbd985588daaed7f3b62c7f8f5933cf55b1 (patch)
tree6caf3c3b5f7e44c4af5e53d87212bcca1af2d7ea
parent3e7a65be20d005fbef8ee1bc994818b68ca5e817 (diff)
initial commit
-rw-r--r--bard-elisp/bard-terminal.el9
-rw-r--r--bard-emacs-modules/bard-emacs-circe.el23
2 files changed, 32 insertions, 0 deletions
diff --git a/bard-elisp/bard-terminal.el b/bard-elisp/bard-terminal.el
new file mode 100644
index 0000000..09901e6
--- /dev/null
+++ b/bard-elisp/bard-terminal.el
@@ -0,0 +1,9 @@
+(defun open-terminal-in-current-directory ()
+ "Open a terminal in the current working directory."
+ (interactive)
+ (let ((default-directory default-directory))
+ (start-process "urxvt-terminal" nil "urxvtc")))
+
+(global-set-key (kbd "C-c t") 'open-terminal-in-current-directory)
+
+(provide 'bard-terminal.el)
diff --git a/bard-emacs-modules/bard-emacs-circe.el b/bard-emacs-modules/bard-emacs-circe.el
new file mode 100644
index 0000000..6fb8513
--- /dev/null
+++ b/bard-emacs-modules/bard-emacs-circe.el
@@ -0,0 +1,23 @@
+(setq auth-sources '("~/.authinfo.gpg"))
+
+(defun my-fetch-password (&rest params)
+ (require 'auth-source)
+ (let ((match (car (apply 'auth-source-search params))))
+ (if match
+ (let ((secret (plist-get match :secret)))
+ (if (functionp secret)
+ (funcall secret)
+ secret))
+ (error "Password not found for %S" params))))
+
+(defun my-nickserv-password (server)
+ (my-fetch-password :user "bardman" :machine "irc.libera.chat"))
+
+(setq circe-network-options
+ '(("Libera Chat"
+ :nick "bardman"
+ :channels ("#emacs" "##anime" "#gentoo")
+ :nickserv-password my-nickserv-password)))
+
+
+(provide 'bard-emacs-circe)