---
title: "emacs auto-complete 无效"
author: "forever8tf"
date: "2015-03-26T20:50:56Z"
tags: ["Emacs", "Popup"]
categories: ["编程语言"]
slug: "emacs-auto-complete"
draft: false
lastmod: "2015-03-26T20:50:56Z"
id: 2195943
url: "https://forever8tf.iteye.com/blog/2195943"
---

emacs使用ac插件很平常，有时发现ac不可用，可能原因为emacs的窗口最大化了。

使用如下语句可以使emacs启动时最大化：

```
;; set emacs fullscreen
;; (if (eq system-type 'windows-nt)
;;     (w32-send-sys-command 61488))
```

 此时，使用ac会看到popup-el报错，找不到max-width。

 

解决方法：

取消emacs启动窗口最大化。