irc extension has been improved

This commit is contained in:
Sameer Rahmani 2019-01-10 17:26:41 +00:00
parent f64689f614
commit 1dc8ac000d
2 changed files with 10 additions and 2 deletions

View File

@ -12,6 +12,9 @@
"The irc authentication credentials.
This would overridethe default behaviour which is based onauth-sources.")
(defvar irc-nickname "fg42-user"
"The default nickname for irc. ")
(defun irc/extract-secrets-from-auth-source ()
"Extract the irc authenticate data from the auth-sources.
@ -36,7 +39,6 @@ It returns nil if no password is available."
secret)))))
auth-list))
;;;###autoload
(defun irc/setup ()
"Setup the rcirc library which distributes with Emacs."
@ -54,13 +56,16 @@ It returns nil if no password is available."
;; Turn on debugging if the global debuging was enabled
(setq rcirc-debug-flag debug-on-error)
(setq rcirc-server-alist irc-servers)
;;(setq rcirc-server-alist irc-servers)
(setq rcirc-authinfo (or (irc/extract-secrets-from-auth-source)
irc-auth))
(setq rcirc-default-nick irc-nickname)
(rcirc-notify-add-hooks)
(rcirc nil))
;;;###autoload
(defun extensions/irc-initialize ()
"Initialize the irc extention."

View File

@ -10,6 +10,9 @@
(depends-on 'smart-forward)
(depends-on 'ac-js2)
(with-ability prettierjs
(depends-on 'prettier-js))
;;(depends-on 'tern)
(with-ability indium
(depends-on 'indium))