conf-popwin.el 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. ;;; package --- Conf Popwin
  2. ;;;
  3. ;;; Commentary:
  4. ;;; Configuration for helm
  5. ;;;
  6. ;;; Code:
  7. ;;TODO: test better way to load configuration for popwin
  8. (require 'popwin)
  9. (popwin-mode 1)
  10. ;; Helm
  11. (setq display-buffer-alist 'popwin:display-buffer)
  12. (push '("helm" :regexp t :height 0.3) popwin:special-display-config)
  13. ;; M-x dired-jump-other-window
  14. (push '(dired-mode :position top) popwin:special-display-config)
  15. ;; M-!
  16. (push "*Shell Command Output*" popwin:special-display-config)
  17. ;; M-x compile
  18. (push '(compilation-mode :noselect t) popwin:special-display-config)
  19. ;; slime
  20. (push "*slime-apropos*" popwin:special-display-config)
  21. (push "*slime-macroexpansion*" popwin:special-display-config)
  22. (push "*slime-description*" popwin:special-display-config)
  23. (push '("*slime-compilation*" :noselect t) popwin:special-display-config)
  24. (push "*slime-xref*" popwin:special-display-config)
  25. (push '(sldb-mode :stick t) popwin:special-display-config)
  26. (push 'slime-repl-mode popwin:special-display-config)
  27. (push 'slime-connection-list-mode popwin:special-display-config)
  28. ;; vc
  29. (push "*vc-diff*" popwin:special-display-config)
  30. (push "*vc-change-log*" popwin:special-display-config)
  31. ;; Django
  32. (push '("Django:" :regexp t :width 0.3 :position right) popwin:special-display-config)
  33. ;; undo-tree
  34. (push '("*undo-tree*" :width 0.3 :position right) popwin:special-display-config)
  35. ;;ibuffer
  36. (push "*Ibuffer*" popwin:special-display-config)
  37. ;; Kill ring
  38. (require 'popwin-browse-kill-ring)
  39. (push "*Kill Ring*" popwin:special-display-config)
  40. ;;Terminal
  41. (require 'popwin-term)
  42. (push '(term-mode :position :top :height 10 :stick t) popwin:special-display-config)
  43. ;; Backtrace
  44. (push '("*Backtrace*" :height 0.3 ) popwin:special-display-config)
  45. ;; Messages
  46. (push '("*Messages*" :height 0.3 ) popwin:special-display-config)
  47. ;; Compile-Log
  48. (push '("*Compile-Log*" :height 0.3 ) popwin:special-display-config)
  49. ;; Direx
  50. (push '(direx:direx-mode :position left :width 35 :dedicated t)
  51. popwin:special-display-config)
  52. ;; Flycheck
  53. (push '(flycheck-error-list-mode :stick t) popwin:special-display-config)
  54. ;;Others
  55. (push '("collected.org" :position top :height 15) popwin:special-display-config)
  56. (push '("*grep*" :position bottom :height 20 :stick t) popwin:special-display-config)
  57. (push '("*imenu-tree*" :position left :width 50 :stick t) popwin:special-display-config)
  58. (push '("*quickrun*" :height 0.3 :stick t) popwin:special-display-config)
  59. ;; popwin settings
  60. (setq popwin:special-display-config
  61. '(("*Help*" :height 03 :stick t)
  62. ("*Completions*" :height 0.4 :noselect t)
  63. ("*compilation*" :height 0.4 :noselect t :stick t)
  64. ("*Messages*")
  65. ("*Occur*" :height 0.3 t)
  66. ("\\*Slime Description.*" :noselect t :regexp t :height 30)
  67. ("magit" :regexp t :height 0.3)
  68. ("*magit-commit*" :noselect t :height 0.3 :width 80 :stick t)
  69. ("*magit-diff*" :noselect t :height 0.3 :width 80)
  70. ("*magit-edit-log*" :noselect t :height 0.2 :width 80)
  71. ("*magit-process*" :noselect t :height 0.2 :width 80)
  72. ("\\*Slime Inspector.*" :regexp t :height 30)
  73. ("*Ido Completions*" :noselect t :height 0.3)
  74. ;;("*eshell*" :height 0.3)
  75. ("\\*ansi-term\\*.*" :regexp t :height 0.3)
  76. ("*shell*" :height 0.3)
  77. (".*overtone.log" :regexp t :height 30)
  78. ("*gists*" :height 0.3)
  79. ("*sldb.*":regexp t :height 30)
  80. ("*Gofmt Errors*" :noselect t)
  81. ("\\*godoc*" :regexp t :height 30)
  82. ("*nrepl-error*" :height 20 :stick t)
  83. ("*nrepl-doc*" :height 20 :stick t)
  84. ("*nrepl-src*" :height 20 :stick t)
  85. ("*Kill Ring*" :height 30)
  86. ("*project-status*" :noselect t)
  87. ("*Compile-Log" :height 20 :stick t)
  88. ("*pytest*" :noselect t)
  89. ("*Python*" :stick t)
  90. ("*jedi:doc*" :noselect t)
  91. )
  92. )
  93. (provide 'conf-popwin)
  94. ;;; conf-popwin.el ends here