Commits

Adam Gomaa  committed e9fe8cb

emacs: various

  • Participants
  • Parent commits 0aa1f83

Comments (0)

Files changed (4)

File .emacs.d/ag-custom.el

  '(desktop-save t)
  '(desktop-save-mode t)
  '(enable-local-variables :safe)
+ '(espresso-indent-level 2)
  '(flyspell-auto-correct-binding nil)
  '(frame-background-mode nil)
+ '(global-auto-revert-mode nil)
  '(js2-highlight-level 3)
  '(js2-indent-on-enter-key t)
  '(make-backup-files nil)
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
- '(default ((t (:inherit nil :stipple nil :background "black" :foreground "white" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 80 :width normal :foundry "unknown" :family "DejaVu Sans Mono"))))
+ '(default ((t (:inherit nil :stipple nil :background "black" :foreground "white" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 110 :width normal :foundry "unknown" :family "DejaVu Sans Mono"))))
  '(highlight-80+ ((t (:background "dark blue"))))
  '(ido-first-match ((t (:underline t))))
  '(js2-comment-face ((t (:foreground "#f90"))))

File .emacs.d/ag-functions.el

   (kill-line 1)
   )
 
-(defun jao-toggle-selective-display (column)
-  (interactive "P")
-  (set-selective-display
-   (if selective-display nil (or column 1))))
-
-
 
 (defun diff-buffer-with-associated-file ()
   "View the differences between BUFFER and its associated file.
     (delete-other-windows)))
 
 
-(defun jao-toggle-selective-display (column)
-  (interactive "P")
-  (set-selective-display
-   (if selective-display nil (or column 1))))
-
 (defun really-revert-buffer ()
   "Revert the buffer without asking for confirmation."
   (interactive)

File .emacs.d/ag-modes.el

 (autoload 'lua-mode "lua-mode" "Lua editing mode." t)
 (autoload 'apache-mode "apache-mode" nil t)
 
+
+;(add-to-list 'load-path "~/var/build/python-mode.el-6.0.8")
+;(setq py-install-directory "~/var/build/python-mode.el-6.0.8")
+;(require 'python-mode)
+
+
 (add-to-list 'auto-mode-alist '("\\.html$" . html-mode))
 (add-to-list 'auto-mode-alist '("\\.htm$" . html-mode))
 (add-to-list 'auto-mode-alist '("\\.django$" . html-mode))
 (add-to-list 'auto-mode-alist '("\\.cs\\'" . java-mode))
 
 (add-to-list 'interpreter-mode-alist '("lua" . lua-mode))
-(add-to-list 'interpreter-mode-alist '("python3" . python-mode))
+;(add-to-list 'interpreter-mode-alist '("python3" . python-mode))
 
 
+;(autoload 'python-mode "python-mode" "Python Mode." t)
+;(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))
+;(add-to-list 'interpreter-mode-alist '("python" . python-mode))
+
 (add-hook 'latex-mode-hook
           '(lambda ()
 	    (define-key latex-mode-map "(" 'lparen)
             ))
 
 
-(set 'set-highlight-80+ (lambda nil (highlight-80+-mode)))
+(set 'set-highlight-80+ (lambda nil (highlight-80+-mode t)))
 
 (add-hook 'python-mode-hook set-highlight-80+)
 (add-hook 'espresso-mode-hook set-highlight-80+)

File .emacs.d/ag-settings.el

 (setq python-indent 4)
 
 ; This could be a performance issue, so far it's OK
-(global-auto-revert-mode 1)
+;(global-auto-revert-mode nil)
 
 
 ; http://trey-jackson.blogspot.com/2008/03/emacs-tip-12-show-trailing-whitespace.html