forked from FG42/FG42
irc extension has been improved
This commit is contained in:
parent
f64689f614
commit
1dc8ac000d
|
@ -12,6 +12,9 @@
|
||||||
"The irc authentication credentials.
|
"The irc authentication credentials.
|
||||||
This would overridethe default behaviour which is based onauth-sources.")
|
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 ()
|
(defun irc/extract-secrets-from-auth-source ()
|
||||||
"Extract the irc authenticate data from the auth-sources.
|
"Extract the irc authenticate data from the auth-sources.
|
||||||
|
|
||||||
|
@ -36,7 +39,6 @@ It returns nil if no password is available."
|
||||||
secret)))))
|
secret)))))
|
||||||
auth-list))
|
auth-list))
|
||||||
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun irc/setup ()
|
(defun irc/setup ()
|
||||||
"Setup the rcirc library which distributes with Emacs."
|
"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
|
;; Turn on debugging if the global debuging was enabled
|
||||||
(setq rcirc-debug-flag debug-on-error)
|
(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)
|
(setq rcirc-authinfo (or (irc/extract-secrets-from-auth-source)
|
||||||
irc-auth))
|
irc-auth))
|
||||||
|
(setq rcirc-default-nick irc-nickname)
|
||||||
(rcirc-notify-add-hooks)
|
(rcirc-notify-add-hooks)
|
||||||
(rcirc nil))
|
(rcirc nil))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun extensions/irc-initialize ()
|
(defun extensions/irc-initialize ()
|
||||||
"Initialize the irc extention."
|
"Initialize the irc extention."
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
(depends-on 'smart-forward)
|
(depends-on 'smart-forward)
|
||||||
(depends-on 'ac-js2)
|
(depends-on 'ac-js2)
|
||||||
|
|
||||||
|
(with-ability prettierjs
|
||||||
|
(depends-on 'prettier-js))
|
||||||
|
|
||||||
;;(depends-on 'tern)
|
;;(depends-on 'tern)
|
||||||
(with-ability indium
|
(with-ability indium
|
||||||
(depends-on 'indium))
|
(depends-on 'indium))
|
||||||
|
|
Loading…
Reference in New Issue