<commit_before>;;;;;;;;;;;;;;;;;;;;
;; set up unicode
(prefer-coding-system       'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
;; This from a japanese individual.  I hope it works.
(setq default-buffer-file-coding-system 'utf-8)
;; From Emacs wiki
(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))
(setq x-select-enable-clipboard t)

(add-to-list 'load-path "~/.emacs.d/site-lisp")
(setq tab-width 4)
(setq-default indent-tabs-mode nil)
(set-default 'indicate-empty-lines t)
(menu-bar-mode 0)
(set-default 'imenu-auto-rescan t)

; default to unified diffs
(setq diff-switches "-u")
; Don't clutter up directories with files~
;(setq backup-directory-alist `(("." . ,(expand-file-name
;                                        (concat dotfiles-dir "backups")))))

(autoload 'php-mode "~/.emacs.d/site-lisp/php-mode" "Major mode for editing php code." t)
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
(add-to-list 'auto-mode-alist '("\\.inc$" . php-mode))
(defun my-php-mode-common-hook ()
  ;; my customizations for php-mode
  (setq tab-width 4)
  (setq c-basic-offset 4)
  (c-set-offset 'topmost-intro-cont 4)
  (c-set-offset 'class-open 0)
  (c-set-offset 'inline-open 0)
  (c-set-offset 'substatement-open 0)
  (c-set-offset 'arglist-intro '+)
  )
(add-hook 'php-mode-hook 'my-php-mode-common-hook)

(add-hook 'html-mode-hook
          (lambda()
            (setq sgml-basic-offset 4)
            (setq indent-tabs-mode t)))


;; Set to the location of your Org files on your local system
(setq org-directory "~/Dropbox/bin/org")
;; Set to the name of the file where new notes will be stored
(setq org-mobile-inbox-for-pull "~/Dropbox/bin/org/flagged.org")
;; Set to <your Dropbox root directory>/MobileOrg.
(setq org-mobile-directory "~/Dropbox/MobileOrg")

;; (setq mac-allow-anti-aliasing nil)
(defun mac-toggle-max-window ()
  (interactive)
  (set-frame-parameter nil 'fullscreen (if (frame-parameter nil 'fullscreen)
                                           nil
                                           'fullboth)))
;;(mac-toggle-max-window)

(defun other-window-reverse ()
 (interactive)
 (other-window -1))

(setq visible-bell t)
;(setq ring-bell-function (lambda () (message "*beep*")))
;(set-message-beep 'silent)

;;(add-to-list 'load-path  "~/Dropbox/emacs/")

(iswitchb-mode 1)<commit_msg>fix emacs html tabbing<commit_after>;;;;;;;;;;;;;;;;;;;;
;; set up unicode
(prefer-coding-system       'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
;; This from a japanese individual.  I hope it works.
(setq default-buffer-file-coding-system 'utf-8)
;; From Emacs wiki
(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))
(setq x-select-enable-clipboard t)

(add-to-list 'load-path "~/.emacs.d/site-lisp")
(setq tab-width 4)
(setq-default indent-tabs-mode nil)
(set-default 'indicate-empty-lines t)
(menu-bar-mode 0)
(set-default 'imenu-auto-rescan t)

; default to unified diffs
(setq diff-switches "-u")
; Don't clutter up directories with files~
;(setq backup-directory-alist `(("." . ,(expand-file-name
;                                        (concat dotfiles-dir "backups")))))

(autoload 'php-mode "~/.emacs.d/site-lisp/php-mode" "Major mode for editing php code." t)
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
(add-to-list 'auto-mode-alist '("\\.inc$" . php-mode))
(defun my-php-mode-common-hook ()
  ;; my customizations for php-mode
  (setq tab-width 4)
  (setq c-basic-offset 4)
  (c-set-offset 'topmost-intro-cont 4)
  (c-set-offset 'class-open 0)
  (c-set-offset 'inline-open 0)
  (c-set-offset 'substatement-open 0)
  (c-set-offset 'arglist-intro '+)
  )
(add-hook 'php-mode-hook 'my-php-mode-common-hook)

;;(add-hook 'html-mode-hook
;;          (lambda()
;;            (setq sgml-basic-offset 4)
;;))

;; Set to the location of your Org files on your local system
(setq org-directory "~/Dropbox/bin/org")
;; Set to the name of the file where new notes will be stored
(setq org-mobile-inbox-for-pull "~/Dropbox/bin/org/flagged.org")
;; Set to <your Dropbox root directory>/MobileOrg.
(setq org-mobile-directory "~/Dropbox/MobileOrg")

;; (setq mac-allow-anti-aliasing nil)
(defun mac-toggle-max-window ()
  (interactive)
  (set-frame-parameter nil 'fullscreen (if (frame-parameter nil 'fullscreen)
                                           nil
                                           'fullboth)))
;;(mac-toggle-max-window)

(defun other-window-reverse ()
 (interactive)
 (other-window -1))

(setq visible-bell t)
;(setq ring-bell-function (lambda () (message "*beep*")))
;(set-message-beep 'silent)

;;(add-to-list 'load-path  "~/Dropbox/emacs/")

(iswitchb-mode 1)
{'fraction_non_alphanumeric': 0.17414909166840675, 'fraction_numerical': 0.007099603257465024, 'mean_word_length': 3.0696686491079013, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1471109', 'n_tokens_mistral': 1819, 'n_tokens_neox': 1722, 'n_words': 407}