Skip to content

Instantly share code, notes, and snippets.

View treyharris's full-sized avatar

Trey Harris treyharris

View GitHub Profile
(use-package paredit
:hook (enable-paredit-mode)
:config
(progn
;; Used later in hooks for modes that aren't elisp so backslash
;; works normally
(defun init/disable-paredit-backslash ()
"Disable paredit's escaping handling of backslash"
(local-set-key [remap paredit-backslash]
(defun init/disable-paredit-backslash ()
;; diff hooks for org mode
(add-hook 'ediff-select-hook 'f-ediff-org-unfold-tree-element)
(add-hook 'ediff-unselect-hook 'f-ediff-org-fold-tree)
;; Check for org mode and existence of buffer
(defun f-ediff-org-showhide(buf command &rest cmdargs)
"If buffer exists and is orgmode then execute command"
(if buf
(if (eq (buffer-local-value 'major-mode (get-buffer buf)) 'org-mode)
(save-excursion (set-buffer buf) (apply command cmdargs)))
)

Haiku

JPhoneE
1草の戸もkusa no tomoThe door of the thatched hut
2住替る代ぞ sumi kawaru yo zoAlso changed the owner.
3ひなの家hina no ieAt the doll’s festival.
#+OPTIONS: H:2 num:nil toc:nil
#+STARTUP: indent odd hidestars
#+STARTUP: entitiespretty
Debugger entered--Lisp error: (void-variable org-pos)
org-table-show-reference()
funcall-interactively(org-table-show-reference)
call-interactively(org-table-show-reference nil nil)
command-execute(org-table-show-reference)
(defun org-show-block-all ()
"Unfold all blocks in the current buffer."
(interactive)
(remove-overlays nil nil 'invisible 'org-hide-block))
(make-obsolete 'org-show-block-all
"use `org-show-all' instead."
"Org 9.2")
This file has been truncated, but you can view the full file.
;;; org.el --- Outline-based notes management and organizer -*- lexical-binding: t; -*-
;; Carstens outline-mode for keeping track of everything.
;; Copyright (C) 2004-2018 Free Software Foundation, Inc.
;;
;; Author: Carsten Dominik <carsten at orgmode dot org>
;; Maintainer: Carsten Dominik <carsten at orgmode dot org>
;; Keywords: outlines, hypermedia, calendar, wp
;; Homepage: https://orgmode.org
;; Version: 9.2
org-show-all is a compiled Lisp function in
‘~/src/emacs-config/elpa/org-9.2/org.el’.
(org-show-all &optional TYPES)
Show all contents in the visible part of the buffer.
By default, the function expands headings, blocks and drawers.
When optional argument TYPE is a list of symbols among ‘blocks’,
‘drawers’ and ‘headings’, to only expand one specific type.
com.github.birros.WebArchives/x86_64/stable system,current
org.gnome.Builder/x86_64/stable system,current
org.freedesktop.Platform.html5-codecs/x86_64/18.08 system,runtime
org.gnome.Platform/x86_64/3.30 system,runtime
org.gnome.Sdk/x86_64/3.32 system,runtime
@treyharris
treyharris / output.console
Created April 8, 2019 19:38
What is PowerShell doing here?
PS C:\WINDOWS\system32> Get-ItemProperty --path 'HKCU:\Software\Microsoft\Windows\'
Get-ItemProperty : Cannot find path 'C:\WINDOWS\system32\--path' because it does not exist.
At line:1 char:1
+ Get-ItemProperty --path 'HKCU:\Software\Microsoft\Windows\'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\WINDOWS\system32\--path:String) [Get-ItemProperty], ItemNotFoundExce
ption
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand
PS C:\WINDOWS\system32>