Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add emacs tricks from Gary Bernhardt

Initially this just includes his special-display-function.
  • Loading branch information...
commit b8d10b0a32eb08c40fddea95ff1085fdf3742426 1 parent 944254e
Andrew Sardone authored

Showing 2 changed files with 34 additions and 0 deletions. Show diff stats Hide diff stats

  1. +24 0 modules/aps-editor.el
  2. +10 0 vendor/grb-defuns.el
24 modules/aps-editor.el
@@ -75,4 +75,28 @@
75 75 ;; enable sensible commenting/uncommenting
76 76 (aps-define-comment-or-uncomment-line)
77 77
  78 +;; special-display-function setup
  79 +;; stolen from Gary Bernhardt
  80 +(setq special-display-regexps
  81 + '("^\\*Completions\\*$"
  82 + "^\\*Help\\*$"
  83 + "^\\*grep\\*$"
  84 + "^\\*Apropos\\*$"
  85 + "^\\*elisp macroexpansion\\*$"
  86 + "^\\*local variables\\*$"
  87 + "^\\*Compile-Log\\*$"
  88 + "^\\*Quail Completions\\*$"
  89 + "^\\*Occur\\*$"
  90 + "^\\*frequencies\\*$"
  91 + "^\\*compilation\\*$"
  92 + "^\\*Locate\\*$"
  93 + "^\\*Colors\\*$"
  94 + "^\\*tumme-display-image\\*$"
  95 + "^\\*SLIME Description\\*$"
  96 + "^\\*.* output\\*$" ; tex compilation buffer
  97 + "^\\*TeX Help\\*$"
  98 + "^\\*Shell Command Output\\*$"
  99 + "^\\*Async Shell Command\\*$"))
  100 +(setq special-display-function #'grb-special-display)
  101 +
78 102 (provide 'aps-editor)
10 vendor/grb-defuns.el
... ... @@ -0,0 +1,10 @@
  1 +;; Various definitions stolen from Gary Bernhardt
  2 +;; https://github.com/garybernhardt/dotfiles
  3 +
  4 +; GRB: open temporary buffers in a dedicated window split
  5 +(setq grb-temporary-window (nth 2 (window-list)))
  6 +(defun grb-special-display (buffer &optional data)
  7 + (let ((window grb-temporary-window))
  8 + (with-selected-window window
  9 + (switch-to-buffer buffer)
  10 + window)))

0 comments on commit b8d10b0

Please sign in to comment.
Something went wrong with that request. Please try again.