SORU
18 EYLÜL 2008, PERŞEMBE


Nasıl Emacs boyutunu ayarlayın' pencere muyum?

Çalışıyorum tespit boyutu ekran başladım emacs, ve ayarlamak boyutu ve konumu penceredir başlayan (sanırım bu çerçevede emacs-konuşma) buna göre. Benim ayarlamaya çalışıyorum .ben her zaman bir "makul-büyük üst-sol ekranın sol üst köşesine yakın." pencere böylece emacs

Bu sanırımbüyükgenel durum iste, bir şeyler daraltmak için en GNU ilgileniyorum biraz Windows 22 (Debian) Linux Emacs.

CEVAP
18 EYLÜL 2008, PERŞEMBE


Eğer çözünürlüğüne göre boyutunu değiştirmek isterseniz, bu özel ihtiyaçlarına göre tercih edilen genişlik ve çözünürlük ayarlama gibi bir şey yapabilirsiniz:

(defun set-frame-size-according-to-resolution ()
  (interactive)
  (if window-system
  (progn
    ;; use 120 char wide window for largeish displays
    ;; and smaller 80 column windows for smaller displays
    ;; pick whatever numbers make sense for you
    (if (> (x-display-pixel-width) 1280)
           (add-to-list 'default-frame-alist (cons 'width 120))
           (add-to-list 'default-frame-alist (cons 'width 80)))
    ;; for the height, subtract a couple hundred pixels
    ;; from the screen height (for panels, menubars and
    ;; whatnot), then divide by the height of a char to
    ;; get the height we want
    (add-to-list 'default-frame-alist 
         (cons 'height (/ (- (x-display-pixel-height) 200)
                             (frame-char-height)))))))

(set-frame-size-according-to-resolution)

Pencere-sistem emacs yeni sürümleri kaldırılmış olduğunu unutmayın. Uygun bir yerine (display-graphic-p). Biraz daha arka plan için soru How to detect that emacs is in terminal-mode? this answer bkz.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • alex maybury

    alex maybury

    20 Aralık 2007
  • Fullscreen

    Fullscreen

    23 Mart 2006
  • wolfys you tube

    wolfys you t

    22 Kasım 2006