Skip to content

Commit

Permalink
feat: Add verticl/horizontal display
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed May 28, 2024
1 parent 960778b commit 779a3ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions elenv.el
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,16 @@ For argument REMOTE, see function `executable-find' description."
(defconst elenv-graphic-p (display-graphic-p)
"Return t if graphic mode.")

;;;###autoload
(defun elenv-display-vertical-p ()
"Return non-nil if currently on a vertical display."
(< (display-pixel-width) (display-pixel-height)))

;;;###autoload
(defun elenv-display-horizontal-p ()
"Return non-nil if currently on a horizontal display."
(not (elenv-display-vertical-p)))

;;
;; (@* "Daemon" )
;;
Expand Down

0 comments on commit 779a3ca

Please sign in to comment.