Skip to content

Instantly share code, notes, and snippets.

View sickHamm's full-sized avatar

sickHamm sickHamm

View GitHub Profile
;;; company-auto-expand-mode.el --- auto expand company-mode selection candidate
;; Author: Yu Guang
;;; Commentary:
;;
;; The core code is very simple; just shrink company candidate brefore every command
;; and expand company candidate again after every command;
;; dispaly at here maybe useful for someone.
@sickHamm
sickHamm / company-auto-expand-frontend.el
Last active June 28, 2016 03:11
company-auto-expand-frontend
(defvar-local company-auto-expand-mode nil)
(defun company-auto-expand-frontend (command)
(when company-auto-expand-mode
(cl-case command
(pre-command
(company--shrink-selection)
(when (and this-command
(company-auto-expand-finish-commmand this-command))
(company-complete-selection)))
(post-command
@sickHamm
sickHamm / block
Last active August 1, 2019 07:25
mount netgear wndr 3400's reserved MTD partions(ubifs filesystem) to # /tmp/extroot/overlay as openwrt extroot
#!/bin/sh
# This is sh-script edtion block replace openwrt block-mount package's block
# This file should named block and place in /sbin/
# DO WHAT: mount netgear wndr 3400's reserved MTD partions(ubifs filesystem) to
# /tmp/extroot/overlay as openwrt extroot
# HOWTO: BOOT -> LOAD KERNEL -> (PREINIT -> MOUNT_EXTROOT || MOUNT ROOT ) -> INIT
# \___-> block extroot (replace this)
# WHAT IS UBI AND UBIFS