Compare commits

..

No commits in common. "68c3bbadd304db92a36bf9a09767d8b5baae55d7" and "6930921e6cff193549a343b943a546fe472c5fc0" have entirely different histories.

6 changed files with 295 additions and 435 deletions

View File

@ -1,197 +0,0 @@
{
"title": "Change caps_lock key (rev 5)",
"rules": [
{
"description": "Change caps_lock key to command+control+option+shift if pressed with other keys",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift",
"modifiers": [
"left_command",
"left_control",
"left_option"
]
}
],
"to_if_alone": [
{
"hold_down_milliseconds": 100,
"key_code": "caps_lock"
}
]
}
]
},
{
"description": "Change caps_lock key to command+control+option+shift. (Post escape key when pressed alone)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift",
"modifiers": [
"left_command",
"left_control",
"left_option"
]
}
],
"to_if_alone": [
{
"key_code": "escape"
}
]
}
]
},
{
"description": "Change caps_lock key to command+control+option+shift. (Post f19 key when pressed alone)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift",
"modifiers": [
"left_command",
"left_control",
"left_option"
]
}
],
"to_if_alone": [
{
"key_code": "f19"
}
]
}
]
},
{
"description": "Change caps_lock key to command+control+option+shift. (Use shift+caps_lock as caps_lock)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"mandatory": [
"shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "caps_lock"
}
]
},
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift",
"modifiers": [
"left_command",
"left_control",
"left_option"
]
}
]
}
]
},
{
"description": "Change caps_lock to control if pressed with other keys, to escape if pressed alone.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
]
}
]
},
{
"description": "Change caps_lock to control if pressed with other keys. (rev 2)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "caps_lock",
"hold_down_milliseconds": 500
}
]
}
]
}
]
}

View File

@ -1,226 +0,0 @@
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false,
"unsafe_ui": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
"basic.simultaneous_threshold_milliseconds": 50,
"basic.to_delayed_action_delay_milliseconds": 500,
"basic.to_if_alone_timeout_milliseconds": 1000,
"basic.to_if_held_down_threshold_milliseconds": 500,
"mouse_motion_to_scroll.speed": 100
},
"rules": [
{
"description": "Change caps_lock to control if pressed with other keys, to escape if pressed alone.",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 632,
"vendor_id": 1452
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [],
"treat_as_built_in_keyboard": false
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": false,
"is_pointing_device": true,
"product_id": 632,
"vendor_id": 1452
},
"ignore": true,
"manipulate_caps_lock_led": false,
"simple_modifications": [],
"treat_as_built_in_keyboard": false
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 34304,
"vendor_id": 1452
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [],
"treat_as_built_in_keyboard": false
}
],
"fn_function_keys": [
{
"from": {
"key_code": "f1"
},
"to": [
{
"consumer_key_code": "display_brightness_decrement"
}
]
},
{
"from": {
"key_code": "f2"
},
"to": [
{
"consumer_key_code": "display_brightness_increment"
}
]
},
{
"from": {
"key_code": "f3"
},
"to": [
{
"apple_vendor_keyboard_key_code": "mission_control"
}
]
},
{
"from": {
"key_code": "f4"
},
"to": [
{
"apple_vendor_keyboard_key_code": "spotlight"
}
]
},
{
"from": {
"key_code": "f5"
},
"to": [
{
"consumer_key_code": "dictation"
}
]
},
{
"from": {
"key_code": "f6"
},
"to": [
{
"key_code": "f6"
}
]
},
{
"from": {
"key_code": "f7"
},
"to": [
{
"consumer_key_code": "rewind"
}
]
},
{
"from": {
"key_code": "f8"
},
"to": [
{
"consumer_key_code": "play_or_pause"
}
]
},
{
"from": {
"key_code": "f9"
},
"to": [
{
"consumer_key_code": "fast_forward"
}
]
},
{
"from": {
"key_code": "f10"
},
"to": [
{
"consumer_key_code": "mute"
}
]
},
{
"from": {
"key_code": "f11"
},
"to": [
{
"consumer_key_code": "volume_decrement"
}
]
},
{
"from": {
"key_code": "f12"
},
"to": [
{
"consumer_key_code": "volume_increment"
}
]
}
],
"name": "Default profile",
"parameters": {
"delay_milliseconds_before_open_device": 1000
},
"selected": true,
"simple_modifications": [],
"virtual_hid_keyboard": {
"country_code": 0,
"indicate_sticky_modifier_keys_state": true,
"mouse_key_xy_scale": 100
}
}
]
}

View File

@ -7,7 +7,6 @@
"discord" "discord"
"divvy" "divvy"
"firefox" "firefox"
"jetbrains-toolbox"
"karabiner-elements" "karabiner-elements"
"slack" "slack"
"thunderbird" "thunderbird"

View File

@ -69,17 +69,6 @@
# }; # };
#}; #};
# Brew's XDG CONFIGS
xdg.configFile = {
"karabiner" = {
source = ../../config/karabiner;
recursive = true;
};
};
}; # -- HomeManager }; # -- HomeManager
} }

179
notes/ray_emacs Normal file
View File

@ -0,0 +1,179 @@
(setq debug-on-error t)
;;;; Package management
;; Packages
(require package)
;; package setup
(package-initialize)
(add-to-list package-archives
(“melpa” . “http://melpa.milkbox.net/packages/“))
(add-to-list package-archives
(“marmalade” . “http://marmalade-repo.org/packages/“) t)
;; (package-refresh-contents)
;;;; Development
;; Packages
(require yasnippet)
(require auto-complete)
(require autopair)
(require flycheck)
(require magit)
;; Yasnippet setup
;; None required
;; Auto-complete setup
;; TODO: Sort this setup
(require auto-complete-config)
(add-to-list ac-dictionary-directories “~/.emacs.d/ac-dict”)
(ac-config-default)
(ac-set-trigger-key “TAB”)
(ac-set-trigger-key “<tab>“)
(setq
ac-auto-start 2
ac-override-local-map nil
ac-use-menu-map t
ac-candidate-limit 20)
;; Autopair setup
;; None required
;; Flycheck setup
(global-flycheck-mode t)
;; Magit setup
(global-set-key “\C-xg” magit-status)
(setq magit-last-seen-setup-instructions “1.4.0")
;;;; Python
;; Packges for development
(setq py-install-directory “~/.emacs.d/elpa/python-mode-20150520.353”)
(add-to-list load-path py-install-directory)
(require python-mode)
(require jedi)
;; python-mode setup
(add-to-list auto-mode-alist (“\\.py$” . python-mode))
(setq py-electric-colon-active t)
(add-hook python-mode-hook yas-minor-mode)
(add-hook python-mode-hook auto-complete-mode)
(add-hook python-mode-hook autopair-mode)
;; Jedi setup
(add-hook python-mode-hook (lambda () (jedi:setup)))
(setq jedi:complete-on-dot t)
;; pdb setup
;; Note the Python version
(setq pdb-path /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pdb.py
gud-pdb-command-name (symbol-name pdb-path))
(defadvice pdb (before gud-query-cmdline activate)
“Provide a better default command line when called interactively.”
(interactive
(list (gud-query-cmdline pdb-path
(file-name-nondirectory buffer-file-name)))))
;; Ensure local Python libraries can be found
;; (setenv “PYTHONPATH” (concat “~/Projects/Blue-Peninsula/bp-content/local/lib/python2.7:” (getenv “PYTHONPATH”)))
;; (setenv “PYTHONPATH” “~/Projects/Blue-Peninsula/bp-content/local/lib/python2.7")
(setenv “PYTHONPATH” “/home/addgenie/virtualenvs/addgene/lib/python2.7:/home/addgenie/virtualenvs/addgene/lib/python2.7/site-packages”)
;;;; JavaScript
;; Packages
(require js2-mode)
(require ac-js2)
(require web-beautify)
(require tern)
(require tern-auto-complete)
;; js-mode setup
(add-to-list auto-mode-alist (“\\.json$” . js-mode))
(add-hook js-mode-hook js2-minor-mode)
(add-hook js-mode-hook yas-minor-mode)
(add-hook js2-mode-hook ac-js2-mode)
;; (setq js2-highlight-level 3)
;; Tern setup
(add-hook js-mode-hook (lambda () (tern-mode t)))
(add-hook js-mode-hook auto-complete-mode)
(eval-after-load tern
(progn
(require tern-auto-complete)
(tern-ac-setup)))
(defun delete-tern-process ()
(interactive)
(delete-process “Tern”))
;;;; R
;; Packages
(require ess-site)
;;;; MIT/GNU Scheme
;; Packages
(require xscheme)
;; xcheme setup
(setq scheme-program-name “/Applications/mit-scheme.app/Contents/Resources/mit-scheme”)
;;;; MATLAB
;; Packages
(add-to-list load-path “~/.emacs.d/matlab-emacs”)
(require matlab-load)
;; matlab-emacs setup
;; None required
;;;; Emacs
;; Custom variables
;; TODO: Sort these variables
(custom-set-variables
;; custom-set-variables was added by Custom.
;; 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 wont work right.
(dired-use-ls-dired nil)
(ess-default-style (quote DEFAULT))
(ess-keep-dump-files “always”)
(ess-use-auto-complete t)
(indent-tabs-mode nil)
(inferior-ess-client-command “Initial”)
(inferior-ess-client-name “Initial”)
(inferior-ess-ddeclient “Initial”)
(inhibit-startup-screen t)
(matlab-indent-level 2))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; 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 wont work right.
)
;; Path setup
(setenv “PATH” (concat “/opt/local/bin:” (getenv “PATH”)))
(setq exec-path (append (“/opt/local/bin”) exec-path))
(setenv “PATH” (concat “/usr/local/bin:” (getenv “PATH”)))
(setq exec-path (append (“/usr/local/bin”) exec-path))
;; Frame setup
(setq initial-frame-alist
((top . 1) (left . 177) (width . 125) (height . 52)))
;; dired setup
(setq default-directory “/Users/raymondleclair/Projects”)
;; ido setup
(ido-mode t)
;; ispell setup
(setq ispell-program-name “/opt/local/bin/aspell”)
;; abbrev-mode setup
(setq abbrev-file-name “~/.emacs.d/abbrev_defs”)

116
notes/ray_emacs-notes Normal file
View File

@ -0,0 +1,116 @@
;;;; Requirements:
;; + Emacs >= 24
;; $ sudo pip install jedi
;; $ sudo pip install epc
;; $ sudo npm install -g js-beautify
;; $ sudo npm install -g tern
;; $ sudo npm install -g jshint
;; $ cd ~/Packages
;; $ git clone https://github.com/emacs-ess/ESS.git
;; $ cd ESS
;; $ make
;; Run sudo make install twice. See: Makeconf
;; # make install (for Applications/Emacs.app)
;; # make install (for /opt/local/emacs)
;; See: http://ess.r-project.org/Manual/ess.html
;; + MIT/GNU Scheme
;; See: http://www.gnu.org/software/mit-scheme/
;; $ cd ~/.emacs.d
;; $ cvs -d:pserver:anonymous@matlab-emacs.cvs.sourceforge.net:/cvsroot/matlab-emacs login
;; $ cvs -z3 -d:pserver:anonymous@matlab-emacs.cvs.sourceforge.net:/cvsroot/matlab-emacs co -P matlab-emacs
;; $ cd matlab-emacs
;; $ make
;; See: http://matlab-emacs.sourceforge.net/
;; $ tar -zxvf aspell6-en-7.1-0.tar.gz
;; $ cd aspell6-en-7.1-0
;; $ ./configure
;; $ make
;; # sudo make install
;;;; Package management
;; M-x eval-buffer
;; Packages
(require package)
;; package setup
(package-initialize)
(add-to-list package-archives
(“melpa” . “http://melpa.milkbox.net/packages/“))
(add-to-list package-archives
(“marmalade” . “http://marmalade-repo.org/packages/“) t)
(package-refresh-contents)
;; Package functions
(defun install-if-needed (package)
(unless (package-installed-p package)
(package-install package)))
;;;; Development
;; Packages
(setq to-install
(yasnippet auto-complete autopair flycheck magit))
(mapc install-if-needed to-install)
;;;; Python
;; Requirements:
;; $ sudo pip install jedi
;; $ sudo pip install epc
;; Packages
(setq to-install
(python-mode jedi))
(mapc install-if-needed to-install)
;;;; JavaScript
;; Requirements:
;; $ sudo npm install -g js-beautify
;; $ sudo npm install -g tern
;; $ sudo npm install -g jshint
;; Packages for development
(setq to-install
(js2-mode ac-js2 web-beautify tern tern-auto-complete))
(mapc install-if-needed to-install)
;;;; R
;; Requirements:
;; $ cd ~/Packages
;; $ git clone https://github.com/emacs-ess/ESS.git
;; $ cd ESS
;; $ make
;; # make install
;; See: http://ess.r-project.org/Manual/ess.html
;;;; MIT/GNU Scheme
;; Requirements:
;; + MIT/GNU Scheme
;; See: http://www.gnu.org/software/mit-scheme/
;;;; MATLAB
;; Requirements
;; $ cd ~/.emacs.d
;; $ cvs -d:pserver:anonymous@matlab-emacs.cvs.sourceforge.net:/cvsroot/matlab-emacs login
;; $ cvs -z3 -d:pserver:anonymous@matlab-emacs.cvs.sourceforge.net:/cvsroot/matlab-emacs co -P matlab-emacs
;; $ cd matlab-emacs
;; $ make
;; See: http://matlab-emacs.sourceforge.net/
;;;; Emacs
;; Requirements:
;; $ sudo port install aspell