Note: these instructions are for pre-Sierra MacOS. Sierra (10.12) and newer users see https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d by @gravitylow
If you are getting this in gdb on OSX while trying to run a program:
| ;; After evaluating this, run `M-x display-emacs-info` then `M-x save-buffer' to | |
| ;; save it to a file. | |
| (defun emacs-info () | |
| `((generated . ,(format-time-string "%b %d, %Y %H:%M:%S")) | |
| (system ,system-type ,(window-system)) | |
| (emacs ,emacs-version | |
| ,(bound-and-true-p emacs-repository-branch) | |
| ,(and (stringp emacs-repository-version) | |
| (substring emacs-repository-version 0 9)) |
| #!/usr/bin/env doomscript | |
| ;; An example script showing off how use Doom's CLI framework to write your own. | |
| (defcli! (capture) | |
| ((key ("-k" "--key" key)) | |
| &input input &args args) | |
| "Open an org-capture window." | |
| (exit! "emacsclient" "-a" "" "-e" | |
| (format "(+org-capture/open-frame %S %S)" | |
| (concat input (string-join args " ")) |
| (defvar +org-babel-mode-alist | |
| '((cpp . C) | |
| (C++ . C) | |
| (D . C) | |
| (sh . shell) | |
| (bash . shell) | |
| (matlab . octave) | |
| (amm . ammonite)) | |
| "An alist mapping languages to babel libraries. This is necessary for babel | |
| libraries (ob-*.el) that don't match the name of the language. |
Note: these instructions are for pre-Sierra MacOS. Sierra (10.12) and newer users see https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d by @gravitylow
If you are getting this in gdb on OSX while trying to run a program:
| /** | |
| * LaunchBar Javascript API (see http://www.obdev.at/products/launchbar/index.html) | |
| * | |
| * For use with auto-completion libraries. | |
| */ | |
| // Included to hide "unused function" warnings | |
| run(); | |
| runWithItem({}); | |
| runWithPaths({}); |
| # ag <https://github.com/ggreer/the_silver_searcher> | |
| # usage: ag-replace.sh [search] [replace] | |
| # caveats: will choke if either arguments contain a forward slash | |
| # notes: will back up changed files to *.bak files | |
| ag -0 -l $1 | xargs -0 perl -pi.bak -e "s/$1/$2/g" | |
| # or if you prefer sed's regex syntax: | |
| ag -0 -l $1 | xargs -0 sed -ri.bak -e "s/$1/$2/g" |
| #!/usr/bin/php -d open_basedir=/usr/syno/bin/ddns | |
| <?php | |
| if ($argc !== 5) { | |
| echo 'badparam'; | |
| exit(); | |
| } | |
| // Entered into DSM (Control Panel > External Access > DDNS) | |
| $username = (string) $argv[1]; // Resource ID |
| (defconst doom-fringe-size '3 "Default fringe width") | |
| ;;; Setting up the fringe | |
| ;; switches order of fringe and margin | |
| (setq-default fringes-outside-margins t) | |
| ;; standardize fringe width | |
| (fringe-mode doom-fringe-size) | |
| (push `(left-fringe . ,doom-fringe-size) default-frame-alist) | |
| (push `(right-fringe . ,doom-fringe-size) default-frame-alist) |