我在笔记本电脑上安装了OS X Mountain Lion
,并下载了Emacs 24
(emacs for mac os x处提供的预编译版本)。应用程序窗口的呈现,特别是当我快速滚动或甚至有时慢时,它只是可怕的。
如果有人能提出解决方案,我将非常感激。如果我无法弄清楚这一点,那么让我放弃其他编辑器的Emacs已经够糟糕了。
我在Stackoverflow上找到的最近的查询是Strange vertical lines appearing in Emacs on OS X?
我正在使用Kieran Healy的Emacs社会科学入门套件(http://kieranhealy.org/emacs-starter-kit.html),所以我还没有添加自己的结果 - 实际上一些现有的定制是针对他的机器,而不是我的机器。但我的init.el文件(如此)如下:
;;; init.el --- Where all the magic begins
;;
;; Part of the Emacs Starter Kit
;;
;; This is the first thing to get loaded.
;;
;; org-mode windmove compatibility
(setq org-replace-disputed-keys t)
;; setq dotfiles-dir (file-name-directory (or (buffer-file-name) load-file-name)))
(setq dotfiles-dir (file-name-directory (or load-file-name (buffer-file-name))))
(add-to-list 'load-path (expand-file-name
"lisp" (expand-file-name
"org" (expand-file-name
"src" dotfiles-dir))))
;; Package Locations
;; Location of various local packages (in .emacs.d/vendor or .emacs.d/src)
;; because I don't want to keep them in =/Applications/Emacs.app/= or in
;; =/usr/share/local/=.
(if (fboundp 'normal-top-level-add-subdirs-to-load-path)
(let* ((my-lisp-dir "~/.emacs.d/")
(default-directory my-lisp-dir))
(setq load-path (cons my-lisp-dir load-path))
(normal-top-level-add-subdirs-to-load-path)))
;; Font-face setup. Check the availability of a some default fonts, in
;; order of preference. The first of these alternatives to be found is
;; set as the default font, together with base size and fg/bg
;; colors. If none of the preferred fonts is found, nothing happens
;; and Emacs carries on with the default setup. We do this here to
;; prevent some of the irritating flickering and resizing that
;; otherwise goes on during startup. You can reorder or replace the
;; options here with the names of your preferred choices.
(defun font-existsp (font)
"Check to see if the named FONT is available."
(if (null (x-list-fonts font))
nil t))
;; Set default font. First one found is selected.
(cond
((eq window-system nil) nil)
((font-existsp "PragmataPro")
(set-face-attribute 'default nil :height 121 :font "PragmataPro"))
((font-existsp "Menlo")
(set-face-attribute 'default nil :height 121 :font "Menlo"))
((font-existsp "Consolas")
(set-face-attribute 'default nil :height 121 :font "Consolas"))
((font-existsp "Inconsolata")
(set-face-attribute 'default nil :height 121 :font "Inconsolata"))
)
;; Load up Org Mode and Babel
(require 'org-install)
;; load up the main file
(org-babel-load-file (expand-file-name "starter-kit.org" dotfiles-dir))
;;; init.el ends here
答案 0 :(得分:2)
尝试检查您是否未将框架高度设置为大于屏幕高度。我的.emacs设置为从具有更高垂直分辨率的另一台计算机执行此操作,我看到了与您相同的行为。对我来说,我有这个块:
(setq default-frame-alist
'((width . 80)
(height . 40)
(menu-bar-lines . 1)
(vertical-scroll-bar . -1)))
我必须将高度从60减少到40,这是为了避免这个问题。