This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun pjones:org-goto (&optional alternative-interface) | |
"My version of `org-goto' that first widens the buffer (if | |
narrowed), jumps to the correct heading via `org-goto', then | |
narrows it again if necessary." | |
(interactive "P") | |
(let ((point-size (save-restriction (- (point-max) (point-min)))) | |
(buff-size (buffer-size))) | |
(widen) | |
(org-goto alternative-interface) | |
(if (/= buff-size point-size) (org-narrow-to-subtree)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
PASS_THROUGH = %w(PATH MANPATH EDITOR) | |
DIRECTORY = File.expand_path('~/.MacOSX') | |
FILENAME = File.join(DIRECTORY, 'environment.plist') | |
Dir.mkdir(DIRECTORY) unless File.exist?(DIRECTORY) | |
HEADER = <<EOT | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
NewerOlder