Skip to content

Instantly share code, notes, and snippets.

@ptrv
ptrv / flycheck-luacheck.el
Last active December 29, 2019 06:25
Flycheck syntax checker for Lua using luacheck
;;; flycheck-luacheck.el --- Flycheck syntax checker using luacheck -*- lexical-binding: t; -*-
;; Copyright (C) 2015 Peter Vasil
;; Author: Peter Vasil <mail@petervasil.net>
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
@ptrv
ptrv / lldb-gud-emacs-24.patch
Last active September 5, 2019 14:16
lldb-gud patch from llvm.org for emacs 24.4
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index e2d996f..d1458a2 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -34,7 +34,7 @@
;; and added a menu. Brian D. Carlstrom <bdc@ai.mit.edu> combined the IRIX
;; kluge with the gud-xdb-directories hack producing gud-dbx-directories.
;; Derek L. Davies <ddavies@world.std.com> added support for jdb (Java
-;; debugger.)
+;; debugger). llvm.org added support for lldb.
@ptrv
ptrv / lldb-gud-emacs-25.patch
Last active October 17, 2017 14:55
lldb-gud patch from llvm.org for emacs 25
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 42c5b20..0f6f412 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -35,7 +35,7 @@
;; kluge with the gud-xdb-directories hack producing gud-dbx-directories.
;; Derek L. Davies <ddavies@world.std.com> added support for jdb (Java
;; debugger.) Jan Nieuwenhuizen added support for the Guile REPL (Guile
-;; debugger).
+;; debugger). llvm.org added support for lldb.
set normal (set_color normal)
set magenta (set_color magenta)
set yellow (set_color yellow)
set green (set_color green)
set red (set_color red)
set gray (set_color -o black)
# Fish git prompt
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_showstashstate 'yes'
@ptrv
ptrv / satellites_alt.scd
Created July 18, 2011 17:52
satellite_sound experiments
//http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Level-meter-disappearing-td2714612.html
(
SynthDef(\bell, { |amp = 0.1, out = 0, azim=30, elev=1,id=10,noisy=22|
var freq = id.linexp(1,30,200,800);
var vol_id = id.linlin(1,20,0.6,0.3);
// var xVal = noisy.linexp(0, 50, 1000, 10000);
// var yVal = elev.linexp(0, 40, 1000, 10000);
@ptrv
ptrv / emacsclient.desktop
Created December 21, 2012 09:55
Ubuntu emacsclient launcher
[Desktop Entry]
Name=Emacs
Comment=GNU Emacs Client
Exec=/usr/bin/emacsclient -c -a emacs24 %F
TryExec=emacs24
Icon=emacs2
Terminal=false
Type=Application
StartupNotify=true
@ptrv
ptrv / e
Created December 29, 2016 11:36
#!/bin/sh
if [ "$(pidof emacs)" ] ; then
emacsclient "$@" &
else
emacs -mm --no-bitmap-icon "$@" &
fi
@ptrv
ptrv / .lldbinit
Last active December 12, 2016 17:23
lldbinit for lldb-gud.el
settings set frame-format frame #${frame.index}: ${frame.pc}{ ${module.file.basename}{`${function.name}${function.pc-offset}}}{ at ${line.file.fullpath}:${line.number}}\n
settings set thread-format thread #${thread.index}: tid = ${thread.id}{, ${frame.pc}}{ ${module.file.basename}{`${function.name}${function.pc-offset}}}{ at ${line.file.fullpath}:${line.number}}{, stop reason = ${thread.stop-reason}}\n
@ptrv
ptrv / lldb-gud.patch
Last active December 7, 2016 22:58
lldb support for gud.el
This diff is retrieved from http://lists.gnu.org/archive/html/emacs-devel/2015-02/msg00274.html
And traces its origin back to https://gitorious.org/lldb/lldb/commit/40e4dbf
It's also present on Apple's OS site:
http://www.opensource.apple.com/source/lldb/lldb-76/utils/emacs/
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 42c5b20..7f2e9c0 100644
@ptrv
ptrv / init.el
Last active December 2, 2016 00:06
Starter Emacs init file
(require 'cl)
(unless (fboundp 'helm-mode)
(ido-mode t)
(setq ido-enable-flex-matching t))
(menu-bar-mode -1)
(when (fboundp 'tool-bar-mode)
(tool-bar-mode -1))
(when (fboundp 'scroll-bar-mode)
(scroll-bar-mode -1))