This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INCLUDE="Emacs vim Archives CVS SVN Mercurial Tags OSX Windows Linux C Go" | |
EXCLUDE="Bancha Objective-C" | |
if [ -d "./gitignore" ]; then | |
cd "./gitignore" | |
echo "-> git pull" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://gist.github.com/Bad-ptr/7628186 | |
DAEMON='server'; | |
if [ -n "$1" ]; | |
then | |
DAEMON="$1" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(with-eval-after-load "company-autoloads" | |
(global-company-mode 1) | |
(setq company-tooltip-limit 20 | |
company-minimum-prefix-length 1 | |
company-echo-delay 0 | |
company-begin-commands '(self-insert-command | |
c-electric-lt-gt c-electric-colon | |
completion-separator-self-insert-command) | |
company-idle-delay 0.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(with-eval-after-load "go-mode" | |
(defconst go-dangling-operators-regexp "[^-]-\\|[^+]\\+\\|[/,*&><.=|^%]") | |
(defun go--find-indent-info-for-current-line (maxpoint) | |
(let ((start-pos (progn | |
(beginning-of-line) | |
(skip-chars-forward "\s\t") | |
(current-column))) | |
(start-type :start) | |
prev-start-pos prev-ending ending eq-l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; company-go.el --- company-mode backend for Go (using gocode) | |
;;; Code: | |
(eval-when-compile | |
(require 'cl) | |
(require 'company)) | |
(defun company-go--invoke-autocomplete () | |
(let ((temp-buffer (generate-new-buffer "*gocode*"))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bind '"\e[A":history-search-backward' | |
bind '"\e[B":history-search-forward' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Test if the computer is running on line power | |
# Exit status: | |
# - 0 (true) System is on AC power | |
# - 1 (false) System is not on AC power | |
# | |
# NOTE: Batteries are not good indicators unless we also check their type, | |
# as some peripherals have batteries. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from ctypes import * | |
X11 = cdll.LoadLibrary("libX11.so.6") | |
display = X11.XOpenDisplay(None) | |
X11.XkbLockModifiers(display, c_uint(0x0100), c_uint(2), c_uint(0)) | |
X11.XCloseDisplay(display) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
xkbcomp -I$HOME/.xkb/ ~/.xkb/keymap/mykbd $DISPLAY & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scriptencoding utf-8 | |
set nocompatible | |
"Basic Settings {{{1 | |
" Encoding {{{2 | |
set encoding=utf-8 | |
set termencoding=utf-8 | |
set fileencoding=utf-8 | |
" Text Wrapping {{{2 |
OlderNewer