Skip to content

Instantly share code, notes, and snippets.

@jadient
jadient / .emacs
Created February 11, 2018 01:12
.emacs on linux
;; .emacs
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(diff-switches "-u")
'(menu-bar-mode -1)
'(tool-bar-mode nil))
@jadient
jadient / .bashrc
Created February 12, 2018 04:55
.bashrc snippet
if [[ -n $EMACS ]]; then
# inside emacs
echo ".bashrc: inside emacs"
alias e='emacsclient -a "" -n "$@"'
elif [[ -n $SSH_TTY ]]; then
# ssh/remote, use terminal mode
alias e='emacsclient -a "" -t "$@"'
else
# local/gui
alias e='emacsclient -a "" -n "$@"'
@jadient
jadient / ClipHist4.ahk
Last active March 26, 2022 04:59
Simple Clipboard History for Windows
;; ClipHist4 - ClipBoard History using AutoHotkey
;;
;; From:
;; https://tinyurl.com/cliphist4
;;
;; Based on:
;; https://www.autohotkey.com/board/topic/87650-clipboard-history-menu-decrementing-numbered-circular-buckets/
;; with customizations and modernization
;;
;; About ClipHist4: