<commit_before>(require 'icomplete)
(require 'rainbow-delimiters)
;; Have emacs start in full screen mode / maximized.
;; (http://www.emacswiki.org/emacs/FullScreen#toc2)
(custom-set-variables
 '(initial-frame-alist (quote ((fullscreen . maximized)))))

;;; Enable Objective-C Mode
(add-to-list 'magic-mode-alist
             `(,(lambda ()
                  (and (string= (file-name-extension buffer-file-name) "h")
                       (re-search-forward "@\\<interface\\>" magic-mode-regexp-match-limit t)))
               . objc-mode))

;; (Paul edit) make the font-size 10 pt
(set-face-attribute 'default nil :height 90)

;; (Paul edit)
(require 'workgroups)
(workgroups-mode 1)
(wg-load "~/.emacs.d/personal/workgroups")

;; (Paul edit)
;; The following code is from: http://dse.livejournal.com/67732.html
;; --- START frame / window sizing functions ---
(defun fix-frame-horizontal-size (width)
  "Set the frame's size to 80 (or prefix arg WIDTH) columns wide."
  (interactive "P")
  (if window-system
      (set-frame-width (selected-frame) (or width 80))
    (error "Cannot resize frame horizontally: is a text terminal")))

(defun fix-window-horizontal-size (width)
  "Set the window's size to 80 (or prefix arg WIDTH) columns wide."
  (interactive "P")
  (enlarge-window (- (or width 80) (window-width)) 'horizontal))

(defun fix-horizontal-size (width)
  "Set the window's or frame's width to 80 (or prefix arg WIDTH)."
  (interactive "P")
  (condition-case nil
      (fix-window-horizontal-size width)
    (error
     (condition-case nil
         (fix-frame-horizontal-size width)
       (error
        (error "Cannot resize window or frame horizontally"))))))
;; --- END frame / window sizing functions ---

;; (Paul edit)
(add-to-list 'auto-mode-alist '("\\.xsd\\'" . xml-mode))

;; (Paul edit - org related config)
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)

;; (Paul edit --- swank-js integration)
(add-to-list 'load-path "~/.emacs.d/vendor/slime/")
(add-to-list 'load-path "~/.emacs.d/vendor/slime/contrib/")
(require 'slime)
(require 'slime-js)
(slime-setup '(slime-js slime-repl))
(setq slime-js-swank-command "/usr/local/bin/swank-js")
(setq slime-js-swank-args '())

;; Helm config
(helm-mode 1)
(global-set-key (kbd "C-x c f") 'helm-mini)

;; whitespace cleanup
(global-set-key (kbd "C-x w h") 'whitespace-cleanup)
(defalias 'w 'whitespace-cleanup)

;; Whitespace cleanup before saving
(add-hook 'before-save-hook 'whitespace-cleanup)

(setq-default indent-tabs-mode nil)

;; cycle windows in reverse order
(defun prev-window ()
  (interactive)
  (other-window -1))
(global-set-key (kbd "C-x p") 'prev-window)
<commit_msg>commented-out unused portion of emacs config<commit_after>(require 'icomplete)
(require 'rainbow-delimiters)
;; Have emacs start in full screen mode / maximized.
;; (http://www.emacswiki.org/emacs/FullScreen#toc2)
(custom-set-variables
 '(initial-frame-alist (quote ((fullscreen . maximized)))))

;;; Enable Objective-C Mode
(add-to-list 'magic-mode-alist
             `(,(lambda ()
                  (and (string= (file-name-extension buffer-file-name) "h")
                       (re-search-forward "@\\<interface\\>" magic-mode-regexp-match-limit t)))
               . objc-mode))

;; (Paul edit) make the font-size 10 pt
(set-face-attribute 'default nil :height 90)

;; (Paul edit)
(require 'workgroups)
(workgroups-mode 1)
(wg-load "~/.emacs.d/personal/workgroups")

;; (Paul edit)
;; The following code is from: http://dse.livejournal.com/67732.html
;; --- START frame / window sizing functions ---
(defun fix-frame-horizontal-size (width)
  "Set the frame's size to 80 (or prefix arg WIDTH) columns wide."
  (interactive "P")
  (if window-system
      (set-frame-width (selected-frame) (or width 80))
    (error "Cannot resize frame horizontally: is a text terminal")))

(defun fix-window-horizontal-size (width)
  "Set the window's size to 80 (or prefix arg WIDTH) columns wide."
  (interactive "P")
  (enlarge-window (- (or width 80) (window-width)) 'horizontal))

(defun fix-horizontal-size (width)
  "Set the window's or frame's width to 80 (or prefix arg WIDTH)."
  (interactive "P")
  (condition-case nil
      (fix-window-horizontal-size width)
    (error
     (condition-case nil
         (fix-frame-horizontal-size width)
       (error
        (error "Cannot resize window or frame horizontally"))))))
;; --- END frame / window sizing functions ---

;; (Paul edit)
(add-to-list 'auto-mode-alist '("\\.xsd\\'" . xml-mode))

;; (Paul edit - org related config)
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)

;; (Paul edit --- swank-js integration)
;(add-to-list 'load-path "~/.emacs.d/vendor/slime/")
;(add-to-list 'load-path "~/.emacs.d/vendor/slime/contrib/")
;(require 'slime)
;(require 'slime-js)
;(slime-setup '(slime-js slime-repl))
;(setq slime-js-swank-command "/usr/local/bin/swank-js")
;(setq slime-js-swank-args '())

;; Helm config
(helm-mode 1)
(global-set-key (kbd "C-x c f") 'helm-mini)

;; whitespace cleanup
(global-set-key (kbd "C-x w h") 'whitespace-cleanup)
(defalias 'w 'whitespace-cleanup)

;; Whitespace cleanup before saving
(add-hook 'before-save-hook 'whitespace-cleanup)

(setq-default indent-tabs-mode nil)

;; cycle windows in reverse order
(defun prev-window ()
  (interactive)
  (other-window -1))
(global-set-key (kbd "C-x p") 'prev-window)

{'fraction_non_alphanumeric': 0.1771347918136909, 'fraction_numerical': 0.008115737473535639, 'mean_word_length': 3.391169635941131, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4593436', 'n_tokens_mistral': 2093, 'n_tokens_neox': 2000, 'n_words': 523}