Skip to content

Commit

Permalink
Add Twitter layer
Browse files Browse the repository at this point in the history
  • Loading branch information
CestDiego committed Oct 13, 2015
1 parent e72dd8a commit 9720d1d
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
43 changes: 43 additions & 0 deletions layers/+fun/twitter/README.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#+TITLE: Twitter contribution layer for Spacemacs
[[file:img/twitter.png]]
* Table of Contents :TOC:
- [[#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 added layers/+fun/twitter/img/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions layers/+fun/twitter/packages.el
Original file line number Diff line number Diff line change
@@ -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)))

0 comments on commit 9720d1d

Please sign in to comment.