Browse Source

Make changes towards IRC capabilities in emacs

master
Taylor Bockman 9 years ago
parent
commit
c6d6246e3f
  1. 26
      dotfiles/emacs.d/init.el
  2. 2
      dotfiles/emacs.d/package.el
  3. 32
      dotfiles/emacs.d/sample-private.el
  4. 4
      dotfiles/zshrc

26
dotfiles/emacs.d/init.el

@ -6,7 +6,8 @@
;; - For stuff that requires privacy (such as ERC, Circe, or Email) place them in ;; - For stuff that requires privacy (such as ERC, Circe, or Email) place them in
;; a .private.el file in your home directory. This script will load that file. ;; a .private.el file in your home directory. This script will load that file.
;; This is the best way I could think of protecting sensitive data without making ;; This is the best way I could think of protecting sensitive data without making
;; it incredibly inconvenient for you. ;; it incredibly inconvenient for you. Take a look at the sample private.el in
;; the emacs.d folder (currently a work in progress).
;; ;;
;;-------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
@ -99,6 +100,29 @@
) )
;;-------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
;; Configure Circe
;;--------------------------------------------------------------------------------------
(setq circe-network-options 'irc-servers)
(setq circe-use-cycle-completion t)
(setq helm-mode-no-completion-in-region-in-modes
'(circe-channel-mode
circe-query-mode
circe-server-mode
)
)
(setq circe-reduce-lurker-spam t)
(setq circe-set-display-handler "JOIN" (lambda (&rest ignored) nil)) ;; Hide JOIN spam
(add-hook 'circe-chat-mode-hook 'my-circe-prompt)
(defun my-circe-prompt ()
(lui-set-prompt
(concat (propertize (concat (buffer-name) ">")
'face 'circe-prompt-face)
" ")))
;;--------------------------------------------------------------------------------------
;; Enable ParEdit for Emacs lisp modes ;; Enable ParEdit for Emacs lisp modes
;;-------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------

2
dotfiles/emacs.d/package.el

@ -1,6 +1,6 @@
(require 'cl) (require 'cl)
(defvar my-packages '(ag auto-complete clojure-mode coffee-mode css-mode framemove flycheck (defvar my-packages '(ag auto-complete clojure-mode coffee-mode css-mode circe framemove flycheck
fill-column-indicator flycheck-clojure flycheck-haskell flycheck-rust fill-column-indicator flycheck-clojure flycheck-haskell flycheck-rust
flycheck-pos-tip gitignore-mode haskell-mode helm helm-ag helm-projectile flycheck-pos-tip gitignore-mode haskell-mode helm helm-ag helm-projectile
js2-mode less-css-mode magit neotree paredit scss-mode powerline projectile js2-mode less-css-mode magit neotree paredit scss-mode powerline projectile

32
dotfiles/emacs.d/sample-private.el

@ -0,0 +1,32 @@
;;-------------------------------------------------------------------
;; Sample private.el
;;
;; Base your private.el off of this if you want an easier time
;; setting things up.
;;
;;-------------------------------------------------------------------
;; Circe Configuration
(defvar irc-username "")
(defvar irc-password "")
(defvar irc-servers '(
(
"Freenode"
:nick "Your nick"
:channels ("channel1" "channel2")
:nickserv-password irc-password
:port port
:tls t
)
)
)
(defvar default-real-name "Real Name")
;; Email Configuration
;; Usenet Configuration

4
dotfiles/zshrc

@ -2,7 +2,7 @@
export ZSH=~/.oh-my-zsh export ZSH=~/.oh-my-zsh
export LC_ALL=en_US.UTF-8 export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
export VISUAL=vim export VISUAL="emacs -nw"
export EDITOR="$VISUAL" export EDITOR="$VISUAL"
export ITERM_24BIT=1 export ITERM_24BIT=1
export TERM=xterm-256color export TERM=xterm-256color
@ -67,7 +67,7 @@ PROMPT="%{$fg[white]%}┌%{$reset_color%}[%{$fg[yellow]%}%n%{$reset_color%}@%{$f
# NOTE: 'Whence' is the ZSH idiom for bash's 'type' # NOTE: 'Whence' is the ZSH idiom for bash's 'type'
export PRENPMPATH=$PATH export PRENPMPATH=$PATH
if [ -n "$(whence -f npm)" ]; if [ -n "$(whence -f npm)" ];
then then
NPMPATH="$(npm bin)" NPMPATH="$(npm bin)"

Loading…
Cancel
Save