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
server { | |
listen 80; | |
listen [::]:80; | |
server_name somedomain; | |
location /applogger { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
add_header 'Access-Control-Allow-Credentials' 'true'; |
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
(use-package go-mode | |
:ensure t | |
:mode "\\.go\\'" | |
:config | |
(progn | |
(defun gopath-set-here () | |
(interactive) | |
(message (or (buffer-file-name) default-directory)) | |
(setenv "GOPATH" |
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 my-normal-cursor-type 'bar) | |
(defun cursor-style-update-action () | |
(when (bound-and-true-p cua-normal-cursor-color) | |
(let* ((current-cursor-color (cdr (assq 'cursor-color (frame-parameters)))) | |
(cursor-style (cond | |
((bound-and-true-p region-bindings-mode) (cons "#d33682" '(bar . 8))) | |
((bound-and-true-p god-local-mode) (cons "#268bd2" 'box)) | |
((bound-and-true-p buffer-read-only) (cons "#859900" '(hbar . 4))) | |
(t (cons cua-normal-cursor-color my-normal-cursor-type))))) |