Skip to content

Instantly share code, notes, and snippets.

View joaotavora's full-sized avatar
🐌
I may be slow to respond.

João Távora joaotavora

🐌
I may be slow to respond.
View GitHub Profile
@joaotavora
joaotavora / .gitignore
Last active October 20, 2022 11:15 — forked from bhankas/README.md
eglot2emacs
emacs/
eglot/
#InstallKeybdHook
prefixMaybe(ByRef map) {
SendLevel 1
; Read 1 key (L1), Case-Sensitive (C), Ignore backspace (B)
; Ignore other hotkeys (I), TImeout after 0.5 seconds (T0.5)
Input, userKey, L1 C B I T0.5 M, {LControl}{RControl}{LAlt}{RAlt}{LWin}{RWin}{AppsKey}{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BS}{Capslock}{Numlock}{PrintScreen}{Pause}
; If failed send the "end key" concealed in ErrorLevel
@joaotavora
joaotavora / .emacs
Last active August 29, 2015 13:57
My simple .emacs
(server-start)
(show-paren-mode 1)
(global-auto-revert-mode 1)
(delete-selection-mode 1)
(menu-bar-mode -1)
(tooltip-mode -1)
(ido-mode 1)
(ido-everywhere 1)
(setq inferior-lisp-program "sbcl")
(add-to-list 'load-path "~/Source/Emacs/slime/")
(require 'slime-autoloads)
(add-to-list 'slime-contribs 'slime-fancy)
(electric-pair-mode 1)
(eldoc-mode 1)
(ido-mode 1)
(tool-bar-mode -1)
(menu-bar-mode -1)
@joaotavora
joaotavora / cl-discount.lisp
Last active December 26, 2015 20:39
cl-discount, basic CL interface to libmarkdown/discount
(ql:quickload :cffi)
;;; Nothing special about the "CFFI-USER" package. We're just
;;; using it as a substitute for your own CL package.
(defpackage :cl-discount
(:use :common-lisp :cffi)
(:nicknames :discount)
(:export #:markdown
#:markdown-to-file))
@joaotavora
joaotavora / epipe.pl
Created October 9, 2013 22:49
A script to run emacsclient in two basic cases: (1) with stdin, to open a new buffer with the contents passed in (2) without stdin, to open a file passed as the argument.
#!/usr/bin/perl -w
#
# Based on a similar util by Phil Jackson ([email protected])
use Cwd;
use File::Copy;
if (-t STDIN ) {
# No STDIN was passed
#
@args = ();
# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: [email protected]
# target_branch: http://bzr.savannah.gnu.org/r/emacs/trunk
# testament_sha1: 27c8026494ef46e68ad79f8263f479ed22874804
# timestamp: 2010-01-30 13:33:01 +0000
# base_revision_id: [email protected]\
# 0m0lt5sbqqqhuufz
#
# Begin patch
=== modified file 'src/nsterm.m'