Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block et2010

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
et2010 /
Created Mar 24, 2019 — forked from jexchan/
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C ""
et2010 / Build Emacs for Windows
Created Jun 5, 2018 — forked from nauhygon/Build Emacs for Windows
Step-by-step instructions to build Emacs for Windows 64 bit with MSYS2 and MinGW-w64.
View Build Emacs for Windows

Build Emacs-w64 with MSYS2/MinGW-w64

Instructions are modified from emacs-w64 Wiki page by zklhp. Many thanks for sharing!

  1. Download MSYS2 (msys2-x86_64-20161025.exe) from this download page.

  2. Install MSYS2 to, for example, C:\msys2 (make sure no space in path).

  3. Optionally prettify the MSYS2 console mintty with ~/.minttyrc to make it more pleasing to eyes. Thanks to this awesome theme!

et2010 / *scratch*.el
Created Oct 25, 2017 — forked from jordonbiondo/*scratch*.el
Create an async.el-friendly lambda that uses variables and functions bound in the current emacs instance.
View *scratch*.el
(defmacro value-bound-lambda (args symbols &rest body)
"Returns a lambda expression with ARGS, where each symbol in SYMBOLS is
available for use and is bound to it's value at creation.
Symbols needs to be a list of variables or functions available globally."
(declare (indent defun))
(let ((vars (remove-if-not 'boundp symbols))
(funcs (remove-if-not 'functionp symbols)))
`(lambda ,args
(let ,(mapcar (lambda (sym) (list sym (symbol-value sym))) vars)
et2010 /
Created Oct 4, 2017 — forked from dokenzy/
AES Encrytion Example in Python
#-*- coding: utf-8 -*-
# Python 3.4
# author:
# date: 2015. 4. 8
# References
et2010 / fixup-join-lines-for-chinese.el
Created Mar 15, 2017
Remove needless whitespace when joining two lines in Chinese
View fixup-join-lines-for-chinese.el
(defun et/fixup-whitespace ()
"Fixup white space between objects around point.
Leave one space or none, according to the context."
(interactive "*")
(if (or (looking-at "^\\|\\s)")
(save-excursion (forward-char -1)
;; we adapted the regexp here:
(looking-at "\\cc\\|$\\|\\s(\\|\\s'")))
View packages.el
(defun jw/gather-alist-cdrs (ALIST)
"Return a list whose elements are cdrs from ALIST"
(-mapcat (lambda (x) (list (cdr x))) ALIST))
View packages.el
(defmacro jw/concat-string-list (&rest strings)
"Concat all elements in LIST whose elements are all strings"
`(concat ,@strings))
et2010 /
Created Feb 8, 2016
If there are problems running volumeicon, try:
rm -iv ~/.config/volumeicon/volumeicon
et2010 / before-processing.el
Last active Feb 7, 2016
Erase `*Org Export Process*' buffer and rename it
View before-processing.el
(set-buffer "*Org Export Process*")
(rename-buffer "*Org Export Process* (running...)"))
et2010 / socks.el
Last active Aug 16, 2019
socks proxy settings for emacs url package.
View socks.el
(setq url-gateway-method 'socks)
(setq socks-server '("Default server" "" 1080 5))
You can’t perform that action at this time.