spacemacs/init-package/init-twittering-mode.el
syl20bnr 1ffb42448e Migrate all package configs to use-package.
Total load time for 90+ packages without byte-compiling: 3s... amazing !
Thanks to \@jwiegley :-)
2013-11-20 00:30:48 -05:00

31 lines
1.3 KiB
EmacsLisp

(use-package twittering-mode
:defer t
:config
(progn
(setq twittering-use-master-password t)
(setq twittering-icon-mode t) ; Show icons
(setq twittering-timer-interval 300) ; Update your timeline each 300 seconds (5 minutes)
(setq twittering-url-show-status nil) ; Keeps the echo area from showing all the http processes
;; spell check
(add-hook 'twittering-edit-mode-hook (lambda () (ispell-minor-mode) (flyspell-mode)))
;; timelines opened at startup
(setq twittering-initial-timeline-spec-string '(
":direct_messages"
":replies"
":home"
;; ":search/emacs/"
;; "user_name/list_name"
))
;; add follow URL by pressing 'o'
(add-hook 'twittering-mode-hook
(lambda ()
(mapc (lambda (pair)
(let ((key (car pair))
(func (cdr pair)))
(define-key twittering-mode-map
(read-kbd-macro key) func)))
'(("o" . twittering-click)))))))