Add xcode-info function
This commit is contained in:
parent
f566127cb6
commit
1f8f9ed5be
2 changed files with 12 additions and 0 deletions
|
|
@ -35,6 +35,9 @@
|
|||
|
||||
(setq gc-cons-threshold (* 2 1000 1000))
|
||||
|
||||
(add-to-list 'load-path (expand-file-name "to/" user-emacs-directory))
|
||||
(require 'utils)
|
||||
|
||||
;; -----------------------------------------------------------------
|
||||
|
||||
(use-package ace-window
|
||||
|
|
|
|||
9
.emacs.d/to/utils.el
Normal file
9
.emacs.d/to/utils.el
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
(defun to/xcode-info ()
|
||||
(interactive)
|
||||
(let ((buffer "*Xcode info*"))
|
||||
(shell-command "system_profiler SPDeveloperToolsDataType" buffer)
|
||||
(with-current-buffer buffer
|
||||
(view-mode +1)
|
||||
(select-window (get-buffer-window buffer)))))
|
||||
|
||||
(provide 'utils)
|
||||
Loading…
Add table
Add a link
Reference in a new issue