This file contains 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-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. |
This file contains 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
(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 |
This file contains 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 | |
# 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 |