6/17/2023 0 Comments Aquamacs el capitan![]() The installed coding standards are MySource, PEAR, PHPCS, PSR1, PSR2, Squiz, Zend, WordPress, WordPress-Core, WordPress-Docs, WordPress-Extra and WordPress-VIP PHP Code Sniffer in Emacs via MELPA and Flycheck Then I verified that it was installed by running: phpcs -i I installed the Code Sniffer for WordPress from github into my ~/Sites directory and then added it to my phpcs configuration by running: phpcs -config-set installed_paths /Users/jfoell/Sites/WordPress-Coding-Standards I added this because I want to use the official PHP Code Sniffer for WordPress. Then I could install phpcs: brew install php-code-sniffer To add it via homebrew, I first needed to add the alternate homebrew-php repository. I wanted to add a PHP Code Sniffer to do syntax checking and documentation/standards enforcement. (define-key global-map 'end-of-line) PHP Add-ons (define-key global-map 'beginning-of-line) Home/End In EmacsĮdit your ~/.emacs file (you could instead edit it with Emacs and it would be oh so meta). Follow the same procedure for End, but map it to \033OF. Click “Delete One Character” and then type “H”. ![]() Choose Key: “Home”, Modifier: “None”, Action: “Send Text:”, and paste in the action code. Click cancel after copying the F1 code.Ĭlick ‘ ’ to add Home. You’ll probably have to add two new entries for Home and End, but first highlight F1, click edit, then copy the \033OP action code so you can paste it in the new codes. Go to the Profiles section, highlight the terminal profile you use the most, then click the “Keyboard” tab. Open Terminal, then go to Terminal -> Preferences… "$\UF72B" = moveToEndOfParagraphAndModifySelection: // shift-end "$\UF729" = moveToBeginningOfParagraphAndModifySelection: // shift-home "\UF729" = moveToBeginningOfParagraph: // home Here are some fixes I’ve found that work: Home/End for most applications $ mkdir -p ~/Library/KeyBindings/ $ vi ~/Library/KeyBindings/DefaultKeyBinding.dict I’m not sure why the Home/End keys don’t have normal behavior as I’ve become accustomed to. Just make sure you know what you’ve typed before hitting return ? Fix Home/End Keys One caution about doing something similar to this is that em (edit) is now very close to rm (remove) since the ‘E’ and ‘R’ keys are neighbors. To shorten up emacs I added a shell script called em to my ~/bin directory: #!/bin/sh In my ~/.bash_profile I also added a ~/bin directory to my path where I can put custom scripts: export PATH="~/bin:$PATH" ![]() However, OSX’s bash won’t read and run ~/.bashrc, only ~/.bash_profile, so to my ~/.bash_profile I added: ]
0 Comments
Leave a Reply. |