This has been moved to https://github.com/hlissner/doom-emacs/blob/develop/docs/api.org#center-emacs-initial-frame-with-a-fixed-size
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 " ")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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({}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro custom-theme-set-faces! (theme &rest specs) | |
"Apply a list of face specs as user customizations for THEME. | |
THEME can be a single symbol or list thereof. If nil, apply these settings to | |
all themes. It will apply to all themes once they are loaded. | |
(custom-theme-set-faces! '(doom-one doom-one-light) | |
`(mode-line :foreground ,(doom-color 'blue)) | |
`(mode-line-buffer-id :foreground ,(doom-color 'fg) :background \"#000000\") | |
'(mode-line-success-highlight :background \"#00FF00\") |
NewerOlder