Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
opiumozor committed Apr 17, 2017
1 parent e8c516f commit c7866da
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 30 deletions.
36 changes: 10 additions & 26 deletions emacs/dot.emacs
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
;;
;;
;; Filename: .emacs
;; Description: My personnal emacs configuration file.
;; Require emacs 24 or > & Xterm-256 colors to work properly.
;;
;; Author: Alexis Bernard
;; Email: alexis.bernard33@gmail.com
;;
;; Created: Mon Mar 24 23:01:29 2014 (+0100)
;; Last-Updated: Wed Jan 20 15:10:00 2016 (+0100)
;; By: Alexis Bernard
;; Update #: 113
;;
;;

;; Remove (the useless) startup message
(setq inhibit-startup-message t)

Expand Down Expand Up @@ -49,7 +33,7 @@
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)

;; Auto-pair
(add-to-list 'load-path "~/.emacs.d/autopair")
(add-to-list 'load-path "~/.config/emacs/dot.emacs.d/autopair")
(require 'autopair)
(autopair-global-mode)

Expand All @@ -76,13 +60,13 @@
(global-set-key [f3] 'vectra-man-on-word)

;; Auto-complete mod
(add-to-list 'load-path "~/.emacs.d/auto-complete")
(add-to-list 'load-path "~/.config/emacs/dot.emacs.d/auto-complete")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/auto-complete/dict")
(add-to-list 'ac-dictionary-directories "~/.config/emacs/dot.emacs.d/auto-complete/dict")
(ac-config-default)

;; Header generation
(add-to-list 'load-path "~/.emacs.d/header")
(add-to-list 'load-path "~/.config/emacs/dot.emacs.d/header")
(require 'header2)
(add-hook 'write-file-hooks 'auto-update-file-header)
(global-set-key (kbd "C-x C-h") 'make-header)
Expand All @@ -104,7 +88,7 @@
(set-face-foreground 'highlight nil)

;; Custom theme
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
(add-to-list 'custom-theme-load-path "~/.config/emacs/dot.emacs.d/themes")
(load-theme 'ample t)

;; 80 column rule
Expand All @@ -122,11 +106,11 @@
;; Remove white space (must be after header generation)
(add-hook 'after-save-hook 'delete-trailing-whitespace)

;; Move autosave files (#foo#) and backup files (foo~) in ~/.emacs.d/
;; Move autosave files (#foo#) and backup files (foo~) in ~/.config/emacs/dot.emacs.d/
(custom-set-variables
'(auto-save-file-name-transforms '((".*" "~/.emacs.d/autosaves/\\1" t)))
'(backup-directory-alist '((".*" . "~/.emacs.d/backups/"))))
(make-directory "~/.emacs.d/autosaves/" t)
'(auto-save-file-name-transforms '((".*" "~/.config/emacs/dot.emacs.d/autosaves/\\1" t)))
'(backup-directory-alist '((".*" . "~/.config/emacs/dot.emacs.d/backups/"))))
(make-directory "~/.config/emacs/dot.emacs.d/autosaves/" t)

;; Switch between buffers
(global-set-key (kbd "C-c <left>") 'windmove-left)
Expand All @@ -135,5 +119,5 @@
(global-set-key (kbd "C-c <down>") 'windmove-down)

;; Scala mode
(add-to-list 'load-path "~/.emacs.d/scala-mode2/")
(add-to-list 'load-path "~/.config/emacs/dot.emacs.d/scala-mode2/")
(require 'scala-mode2)
16 changes: 16 additions & 0 deletions setup_config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

## install zsh config
echo "> Linking new zshrc config"
ln -s ~/.config/zsh/dot.zshrc ~/.zshrc
echo "> Installing zsh theme"
cd ~/.oh-my-zsh/themes/
wget https://raw.githubusercontent.com/caiogondim/bullet-train-oh-my-zsh-theme/master/bullet-train.zsh-theme

## install screen config
echo "> Linking new screen config"
ln -s ~/.config/screen/dot.screenrc ~/.screenrc

## install emacs config
echo "> Linking new emacs config"
ln -s ~/.config/emacs/dot.emacs ~/.emacs
16 changes: 12 additions & 4 deletions zsh/dot.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ alias la='ls -la'
alias cp='cp -v'
alias mv='mv -v'
alias rm='rm -v'
alias emacs='emacs -nw'
alias emacs='/usr/local/Cellar/emacs/25.1/Emacs.app/Contents/MacOS/Emacs -nw'
alias ne='emacs'
alias grep='grep --color=auto'
alias docker_start=". '/Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh'"
Expand Down Expand Up @@ -131,6 +131,14 @@ clean()

# THEME CFG
BULLETTRAIN_PROMPT_CHAR=\>
BULLETTRAIN_PROMPT_SEPARATE_LINE=true
BULLETTRAIN_TIME_SHOW=false
BULLETTRAIN_DIR_CONTEXT_SHOW=false
BULLETTRAIN_PROMPT_ORDER=(
status
custom
dir
perl
ruby
virtualenv
go
git
hg
)

0 comments on commit c7866da

Please sign in to comment.