;ELC
|
;;; Compiled
|
;;; in Emacs version 26.1
|
;;; with all optimizations.
|
|
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
|
|
;;; This file does not contain utf-8 non-ASCII characters,
|
;;; and so can be loaded in Emacs versions earlier than 23.
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
#@32 The golden ratio value itself.
|
(defconst golden-ratio--value 1.618 (#$ . 408))
|
(byte-code "\300\301\302\303\304\305%\210\306\307\302\310\311\312\304\301&\210\306\313\302\314\311\315\304\301&\210\306\316\302\317\304\301\311\320&\210\306\321\322\323\304\301\311\324&\210\306\325\302\326\304\301\311\327&\210\306\330\331\332\304\301\311\333&\210\306\334\335\336\304\301\311\337&\210\306\340\302\341\304\301\311\327&\210\306\342\302\343\311\344\304\301&\210\345\346!\204v \347\346\350\"\210\302\207" [custom-declare-group golden-ratio nil "Resize windows to golden ratio." :group windows custom-declare-variable golden-ratio-exclude-modes "A list of symbols or strings naming major modes.\nSwitching to a buffer whose major mode is a member of this list\nwill not cause the window to be resized to the golden ratio." :type (repeat (choice symbol string)) golden-ratio-exclude-buffer-names "An array of strings containing buffer names.\nSwitching to a buffer whose name is a member of this list\nwill not cause the window to be resized to the golden ratio." (repeat string) golden-ratio-inhibit-functions "List of functions to call with no arguments.\nSwitching to a buffer, if any of these functions returns non-nil\nwill not cause the window to be resized to the golden ratio." (repeat symbol) golden-ratio-extra-commands '(windmove-left windmove-right windmove-down windmove-up) "List of extra commands used to jump to other window." (repeat symbol) golden-ratio-recenter "Recenter window vertically and scroll right when non--nil." boolean golden-ratio-adjust-factor 1.0 "Adjust the width sizing by some factor. 1 is no adjustment.\n For very wide screens/frames, ie. 3400px, .4 may work well." integer golden-ratio-wide-adjust-factor 0.8 "Width adjustment factor for widescreens. Used when\n toggling between widescreen and regular modes." float golden-ratio-auto-scale "Automatic width adjustment factoring. Scales the width\n of the screens to be smaller as the frame gets bigger." golden-ratio-exclude-buffer-regexp "A list of regexp's used to match buffer names.\nSwitching to a buffer whose name matches one of these regexps\nwill prevent the window to be resized to the golden ratio." (repeat string) fboundp window-resizable-p defalias window--resizable-p] 8)
|
(defalias 'golden-ratio-toggle-widescreen #[nil "\302U\203 \202 \302\303 \207" [golden-ratio-adjust-factor golden-ratio-wide-adjust-factor 1 golden-ratio] 2 nil nil])
|
#@38 set the adjustment of window widths.
|
(defalias 'golden-ratio-adjust #[(a) "\302 \207" [a golden-ratio-adjust-factor golden-ratio] 1 (#$ . 2869) (list (read-number "Screeen width adjustment factor: " golden-ratio-adjust-factor))])
|
(defalias 'golden-ratio--scale-factor #[nil "\203 \302\303 \304Z\305\245\306_Z\207 \207" [golden-ratio-auto-scale golden-ratio-adjust-factor 1.0 frame-width 100.0 1000.0 1.8] 3])
|
(defalias 'golden-ratio--dimensions #[nil "\301\302 \245!\301\303 \245\304 _!D\207" [golden-ratio--value floor frame-height frame-width golden-ratio--scale-factor] 4])
|
(defalias 'golden-ratio--resize-window #[(dimensions &optional window) "\305\206 \306 !r\307\216\310 @\311\"\210\312\n@\313 Z!\312\nA@\314 Z!\315\306 \f\"\203/ \316\f!\210\315\306 \317#\205< |