Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Twitter layer #2837

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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_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 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)))