Skip to content

Instantly share code, notes, and snippets.

View WenxiJin's full-sized avatar
🎯
Focusing

Wenxi Jin WenxiJin

🎯
Focusing
  • Sophion Bioscience A/S
  • Denmark
View GitHub Profile
@WenxiJin
WenxiJin / .spacemacs
Created May 25, 2016 06:15
Personal .spacemacs file
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@WenxiJin
WenxiJin / .zshrc
Last active July 8, 2016 14:08
Personal part of .zshrc file
# zsh theme contains git, svn prompts
ZSH_THEME="awesomepanda"
# ll
alias ll="ls -la"
# emacs daemon
export ALTERNATE_EDITOR=""
export EDITOR="emacsclient -t" # $EDITOR should open in terminal
export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI with non-daemon as alternate
@WenxiJin
WenxiJin / .gitignore
Last active September 1, 2017 09:26
Personal ~/.gitignore file, or ~/.gitignore_global file
cscope.*
*~
.projectile
GPATH
GRTAGS
GTAGS
@WenxiJin
WenxiJin / install_emacs-25.1.sh
Last active June 28, 2017 13:44
Script for installing emacs 25.1
#!/usr/bin/env sh
# Exit on error
set -x
#!/usr/bin/env sh
set -x
echo "Adding i386 architecture"
sudo dpkg --add-architecture i386
sudp apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
@WenxiJin
WenxiJin / gitconfig.ini
Last active September 1, 2017 09:14 — forked from tdd/gitconfig.ini
Nice, useful global Git configuration
# Put this in your ~/.gitconfig or ~/.config/git/config
# Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName>
[user]
name = Wenxi Jin
email = jwenxi@gmail.com
[color]
# Enable colors in color-supporting terminals
ui = auto
[alias]
st = status
@WenxiJin
WenxiJin / .zshrc
Created September 22, 2016 13:59
Partial .zshrc script for setting tmux pane title on ssh hostname
ssh() {
if [ "$(ps -p $(ps -p $$ -o ppid=) -o comm=)" = "tmux" ]; then
tmux rename-window "$(echo $* | cut -d . -f 1)"
command ssh "$@"
tmux set-window-option automatic-rename "on" 1>/dev/null
else
command ssh "$@"
fi
}
@WenxiJin
WenxiJin / mk-clang_complete.sh
Created November 22, 2016 13:16
Script for generating .clang_complete for qamp-application
#!/usr/bin/env bash
set -e
# absolute path
export WORKSPACE="/home/wjn/workspace"
export PATH=$PATH:/home/wjn/eclipse/gnutools/arm-eabi/bin
# CC='/home/wjn/bin/cc_args.py gcc' CXX='/home/wjn/bin/cc_args.py g++' -B \
make V=1 \
@WenxiJin
WenxiJin / .dir-locals.el
Last active November 22, 2016 16:56
Disable whitespace-mode in java-mode
;; The 'nil' configuration applies to all modes.
((nil . (
(indent-tabs-mode . t)
(tab-width . 4)))
(java-mode . (
(show-trailing-whitespace . nil)
(eval . (global-whitespace-mode 0))))
)
@WenxiJin
WenxiJin / .dir-locals.el
Created November 22, 2016 16:31
Apple swift .dir-locals.el
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((nil
(eval let*
((x (dir-locals-find-file default-directory))
(this-directory (if (listp x) (car x) (file-name-directory x))))
(unless (featurep 'swift-project-settings)
(add-to-list 'load-path
(concat this-directory "utils")