Skip to content

Instantly share code, notes, and snippets.

View zzamboni's full-sized avatar
:octocat:

Diego Zamboni zzamboni

:octocat:
View GitHub Profile
2020-09-21 11:05:40: 11:05:40 ERROR: LuaSkin: hs.hotkey callback: ...mmerspoon/Spoons/WindowScreenLeftAndRight.spoon/init.lua:60: attempt to call a nil value (method 'moveOneScreenEast')
stack traceback:
...mmerspoon/Spoons/WindowScreenLeftAndRight.spoon/init.lua:60: in function 'WindowScreenLeftAndRight.moveCurrentWindowToScreen'
(...tail calls...)
2020-09-21 11:05:42: 11:05:42 ERROR: LuaSkin: hs.hotkey callback: ...oon.app/Contents/Resources/extensions/hs/window/init.lua:950: attempt to index a nil value (global 'uielement')
stack traceback:
...oon.app/Contents/Resources/extensions/hs/window/init.lua:950: in metamethod 'index'
...mmerspoon/Spoons/WindowScreenLeftAndRight.spoon/init.lua:42: in upvalue '_setFC'
...mmerspoon/Spoons/WindowScreenLeftAndRight.spoon/init.lua:56: in function 'WindowScreenLeftAndRight.moveCurrentWindowToScreen'
(...tail calls...)
2020-09-21 09:30:02: 09:30:02 ERROR: LuaSkin: hs.hotkey callback: ...oon.app/Contents/Resources/extensions/hs/window/init.lua:950: attempt to index a nil value (global 'uielement')
stack traceback:
...oon.app/Contents/Resources/extensions/hs/window/init.lua:950: in metamethod 'index'
...oon.app/Contents/Resources/extensions/hs/window/init.lua:374: in function <...oon.app/Contents/Resources/extensions/hs/window/init.lua:374>
(...tail calls...)
.../.hammerspoon/Spoons/WindowHalfsAndThirds.spoon/init.lua:260: in function 'WindowHalfsAndThirds.resizeCurrentWindow'
#!/bin/bash
if [ -d .emacs.d.mine ]; then
mv .emacs.d .emacs.d.doom
mv .emacs.d.mine .emacs.d
echo "Original .emacs.d is now in place"
else
mv .emacs.d .emacs.d.mine
mv .emacs.d.doom .emacs.d
echo "Emacs Doom .emacs.d is now in place"
--- proc-cli-unique.txt 2020-09-02 22:07:26.535615720 +0200
+++ proc-dock-unique.txt 2020-09-02 22:07:35.499872311 +0200
@@ -20,12 +20,10 @@
LaunchInstanceID=3B5FEB17-C821-4CA7-B291-58DF57B2ECAC
MANPAGER=sh -c 'col -bx | bat -l man -p'
PATH=/Users/taazadi1/.emacs.d/bin/:/Users/taazadi1/Applications/Emacs.app/Contents/MacOS:/Users/taazadi1/bin:/Users/taazadi1/.emacs.d/bin:/Users/taazadi1/Dropbox/Personal/devel/go/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/texinfo/bin:/usr/local/opt/python/libexec/bin:/Users/taazadi1/Library/Python/3.8/bin:/usr/local/opt/[email protected]/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin:/Users/taazadi1/.iterm2
-PATH=/Users/taazadi1/Applications/Emacs.app/Contents/MacOS:/Users/taazadi1/bin:/Users/taazadi1/.emacs.d/bin:/Users/taazadi1/Dropbox/Personal/devel/go/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/texinfo/bin:/usr/local/opt/python/libexec/bin:/Users/taazadi1/Library/Python/3.8/bin:/usr/local/opt/[email protected]/bin:/usr/local/bin:/usr/local
# -*- lisp-interaction -*-
# vim: set ft=lisp:
(wrong-type-argument stringp)
(file-in-directory-p nil "~/.doom.d/")
(if (file-in-directory-p path doom-private-dir) (list '&user))
(append (if (file-in-directory-p path doom-private-dir) (list '&user)) (if flags (cons (cdr key) flags) (list (cdr key))))
@zzamboni
zzamboni / emacs-crash.log
Created September 2, 2020 07:32
Emacs native-comp crash when opening SVG files
Process: Emacs [71042]
Path: /Users/USER/*/Emacs.app/Contents/MacOS/Emacs
Identifier: org.gnu.Emacs
Version: Version 28.0.50 (9.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Emacs [71042]
User ID: 3212163
Date/Time: 2020-09-02 09:08:09.893 +0200
- Waiting for 726 async jobs...
Debugger entered--Lisp error: (invalid-read-syntax "#")
native-elisp-load("/Users/taazadi1/.emacs.d/.local/cache/eln/x86_64-a..." t)
#f(compiled-function (process event) #<bytecode 0x14414972eaf5e394>)(#<process Compiling: /Users/taazadi1/.emacs.d/.local/straight/build/org-edna/org-edna-tests.el> "finished\n")
sleep-for(0.1)
(let ((inhibit-message t)) (sleep-for 0.1))
(if (and (= 0 tick) (/= previous pending)) (progn (doom--print (doom--format (format "- Waiting for %d async jobs..." pending))) (setq previous pending)) (let ((inhibit-message t)) (sleep-for 0.1)))
(while (progn (setq pending (doom--native-compile-jobs)) (setq tick (if --cl-var-- 0 (% (1+ tick) 15))) (not (= 0 pending))) (if (and (= 0 tick) (/= previous pending)) (progn (doom--print (doom--format (format "- Waiting for %d async jobs..." pending))) (setq previous pending)) (let ((inhibit-message t)) (sleep-for 0.1))) (setq --cl-var-- nil))
(let* ((pending nil) (tick nil) (previous 0) (--cl-var-- t)
@zzamboni
zzamboni / org-paste-clipboard.el
Created August 24, 2020 17:14
Trying to define a new org-download keybinding
(use-package! org-download
:commands
org-download-clipboard
:defines
org-download-screenshot-basename
:init
(defun zz/org-download-paste-clipboard (&optional noask)
(interactive "P")
(let ((file
(if (not noask)
> hs.inspect(hs.fs.volume.allVolumes())
{
["/"] = {
NSURLVolumeAvailableCapacityKey = 575475691520,
NSURLVolumeIsAutomountedKey = false,
NSURLVolumeIsBrowsableKey = true,
NSURLVolumeIsEjectableKey = false,
NSURLVolumeIsInternalKey = true,
NSURLVolumeIsLocalKey = true,
NSURLVolumeIsReadOnlyKey = false,
@zzamboni
zzamboni / org-multi-file-md-export.el
Last active January 20, 2020 21:01
org-multi-file-md-export
;; Call this function with "M-x org-multi-file-md-export"
(defun org-multi-file-md-export ()
"Export current buffer to multiple Markdown files."
(interactive)
;; Loop over all entries in the file
(org-map-entries
(lambda ()
(let* ((level (nth 1 (org-heading-components)))
(title (or (nth 4 (org-heading-components)) ""))
;; Export filename is the EXPORT_FILE_NAME property, or the