Add Twitter layer
This commit is contained in:
parent
0248e384a2
commit
04dc6a79c8
|
@ -0,0 +1,43 @@
|
|||
#+TITLE: Twitter contribution layer for Spacemacs
|
||||
[[file:img/twitter.png]]
|
||||
* Table of Contents :TOC_4_org:noexport:
|
||||
- [[Description][Description]]
|
||||
- [[Features][Features]]
|
||||
- [[Install][Install]]
|
||||
- [[Layer][Layer]]
|
||||
- [[Key Bindings][Key Bindings]]
|
||||
|
||||
* Description
|
||||
This layer adds Twitter support to Spacemacs via the package =twittering-mode=,
|
||||
do not hesitate to check the original package README [[https://github.com/hayamiz/twittering-mode][here]].
|
||||
|
||||
* Features
|
||||
- Activities on Twitter
|
||||
- Viewing various timelines
|
||||
- Home timeline
|
||||
- Replies
|
||||
- User's timeline
|
||||
- Public timeline
|
||||
- Favorites timeline
|
||||
- Retweets timeline
|
||||
- Merged timeline
|
||||
- Timeline without tweets satisfying a condition
|
||||
- Posting tweets
|
||||
- Direct message
|
||||
- ReTweet
|
||||
- Hash tag
|
||||
- Signature
|
||||
- Following and removing users
|
||||
- Marking tweets as favorites
|
||||
- HTTP Proxy support
|
||||
- Secure connection via HTTPS (cURL, GNU Wget, OpenSSL or GnuTLS is required)
|
||||
|
||||
* Install
|
||||
** Layer
|
||||
#+begin_src emacs-lisp
|
||||
(setq-default dotspacemacs-configuration-layers '(twitter))
|
||||
#+end_src
|
||||
|
||||
* Key Bindings
|
||||
|
||||
Check out the original package doc [[https://github.com/hayamiz/twittering-mode/blob/master/README.markdown#usage][here]] as the key bindings =feel= evil enough :).
|
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
|
@ -0,0 +1,36 @@
|
|||
;;; packages.el --- twitter Layer packages File for Spacemacs
|
||||
;;
|
||||
;; Copyright (c) 2012-2014 Sylvain Benner
|
||||
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
||||
;;
|
||||
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
||||
;; URL: https://github.com/syl20bnr/spacemacs
|
||||
;;
|
||||
;; This file is not part of GNU Emacs.
|
||||
;;
|
||||
;;; License: GPLv3
|
||||
|
||||
;; List of all packages to install and/or initialize. Built-in packages
|
||||
;; which require an initialization must be listed explicitly in the list.
|
||||
(setq twitter-packages
|
||||
'(twittering-mode))
|
||||
|
||||
(defun twitter/init-twittering-mode ()
|
||||
(use-package twittering-mode
|
||||
:commands twit
|
||||
:init
|
||||
(evil-leader/set-key
|
||||
"at" 'twit)
|
||||
(when (configuration-layer/package-usedp 'flyspell)
|
||||
(add-hook 'twittering-edit-mode-hook (lambda () (flyspell-mode 1))))
|
||||
(push 'twittering-edit-mode evil-insert-state-modes)
|
||||
:config
|
||||
(setq twitter-images-directory
|
||||
(expand-file-name
|
||||
(concat spacemacs-cache-directory "twitter-images")))
|
||||
(unless (file-exists-p twitter-images-directory)
|
||||
(make-directory twitter-images-directory))
|
||||
(setq twittering-icon-mode t)
|
||||
(setq twittering-url-show-status nil)
|
||||
(setq twittering-use-master-password t)
|
||||
(setq twittering-use-icon-storage 1)))
|
Loading…
Reference in New Issue