forked from dennyzhang/Denny-s-emacs-configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsns-setting.el
executable file
·66 lines (62 loc) · 2.77 KB
/
sns-setting.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
;; -*- coding: utf-8 -*-
;; File: sns-setting.el -- social network stuff
;;
;; Author: Denny Zhang(markfilebat@126.com)
;; Created: 2008-10-01
;; Updated: Time-stamp: <2012-08-25 14:10:28>
;; --8<-------------------------- separator ------------------------>8--
(setq erc-server-coding-system '(utf-8 . utf-8))
(setq erc-nick "DennyZhang"
erc-user-full-name "Denny Zhang")
(erc-autojoin-mode 1)
(setq erc-autojoin-channels-alist
'(("freenode.net" "#emacs" "##linux")))
(erc-match-mode 1)
(setq erc-keywords '("emacs" "gnus" "linux"))
;;(setq erc-pals '("rms"))
(setq erc-ignore-list nil)
(setq erc-hide-list '("JOIN" "PART" "QUIT" "MODE"))
;; --8<-------------------------- separator ------------------------>8--
(add-to-list 'load-path (concat EMACS_VENDOR "/jabber"))
(require 'jabber)
(setq jabber-account-list
'(("filebat.mark@gmail.com"
(:network-server . "talk.google.com")
(:connection-type . ssl))))
;; --8<-------------------------- separator ------------------------>8--
(setq jabber-avatar-cache-directory (concat DENNY_CONF
"/jabber/avatars/")
jabber-history-dir (concat DENNY_CONF "/jabber/history/")
jabber-use-global-history t
;;jabber-history-enabled t
jabber-backlog-number 40
jabber-backlog-days 30
jabber-autoaway-timeout 6)
(custom-set-faces
'(jabber-roster-user-online
((t (:foreground "forest green" :slant normal :weight bold))))
'(jabber-roster-user-away
((t (:foreground "LightSteelBlue3" :slant italic :weight normal))))
'(jabber-title-large
((t (:inherit variable-pitch :weight bold :height 1.5 :width ultra-expanded))))
'(jabber-title-medium
((t (:inherit variable-pitch :foreground "#E8E8E8" :weight
bold :height 1.1 :width semi-expanded))))
'(jabber-title-small
((t (:inherit variable-pitch :foreground "#adc4e3" :weight
bold :height 0.7 :width semi-expanded)))))
(load-file (concat EMACS_VENDOR "/autosmiley/autosmiley.el"))
(add-hook 'jabber-chat-mode-hook 'autosmiley-mode)
;; dynamically set status string
(defadvice jabber-send-presence (after let activate)
(setq *jabber-current-status* (get-motto nil 35))
(setq jabber-default-status *jabber-current-status*))
;; when login, set away as default status
(add-hook 'jabber-post-connect-hooks #'(lambda (x) (jabber-send-away-presence)) t)
;; Don’t disturb me if someone change presence status
(remove-hook 'jabber-alert-presence-hooks 'jabber-presence-echo)
;; --8<-------------------------- separator ------------------------>8--
;; add below to avoid throwing exception for invalid avatar images
(add-to-list 'image-type-header-regexps '("\\`\211PNG\n\n" . png))
;; --8<-------------------------- separator ------------------------>8--
;; File: sns-setting.el ends here