-
Notifications
You must be signed in to change notification settings - Fork 0
/
emacs-aquamacs.el
42 lines (30 loc) · 960 Bytes
/
emacs-aquamacs.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
;;; emacs-aquamacs -- Pascal J. Bourguignon's emacs startup files.
;;; -*- mode:emacs-lisp;lexical-binding:t;coding:utf-8 -*-
;;; Commentary:
;;; Code:
(.EMACS "~/rc/emacs-aquamacs.el PJB's Aquamacs rc file.")
(defun mac-vanilla-keys ()
(interactive)
(setf mac-command-modifier 'meta ; emacsformacosx
mac-option-modifier 'alt
one-buffer-one-frame nil)
(setf mac-command-key-is-meta t ; which emacs?
mac-reverse-ctrl-meta nil))
(when (or (boundp 'aquamacs-version) (eq window-system 'ns))
(mac-vanilla-keys)
;; (if 'thru-vnc
;; (mac-vnc-keys)
;; (mac-vanilla-keys))
(cua-mode 0))
(require 'lua-mode)
(add-to-list 'auto-mode-alist '("\\.dop$" . lua-mode))
(defun lua-meat ()
(setq comment-start "--"
comment-end "")
(hs-minor-mode 1))
(add-hook 'lua-mode-hook 'lua-meat)
(find-file "~/rc/emacs-aquamacs.el")
;; Local Variables:
;; coding: utf-8
;; eval: (flycheck-mode -1)
;; End: