Browse Source

Use Cpp11 in clang format; quick org link, re-builder shortcuts

master
macoymadson@gmail.com 3 years ago
parent
commit
268842dc74
  1. 3
      ClangFormat/clang_format.vsSettings
  2. 5
      Emacs/core-settings.el
  3. 5
      Emacs/keybinds.el

3
ClangFormat/clang_format.vsSettings

@ -1,4 +1,3 @@
// Remove me and name file '.clang-format', put in top level source
BasedOnStyle: Google
AccessModifierOffset: -4
AllowShortBlocksOnASingleLine: false
@ -11,7 +10,7 @@ ColumnLimit: 100
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
IndentWidth: 4
Standard: Cpp03
Standard: Cpp11
TabWidth: 4
UseTab: ForIndentation
DerivePointerAlignment: false

5
Emacs/core-settings.el

@ -157,6 +157,11 @@
(simpleclip-set-contents buffer-file-name)
)
(defun macoy-org-copy-file-line-link-to-clipboard ()
(interactive)
(simpleclip-set-contents (format "[[file:%s::%d][" buffer-file-name (line-number-at-pos)))
)
;; Open file in explorer
(defun browse-file-directory ()
"Open the current file's directory however the OS would."

5
Emacs/keybinds.el

@ -170,6 +170,11 @@
(define-key compilation-mode-map (kbd "n") 'compilation-next-error)
(define-key compilation-mode-map (kbd "p") 'compilation-previous-error)
;; Re Builder customizations
(require 're-builder)
(define-key reb-mode-map (kbd "C-<up>") 'reb-prev-match)
(define-key reb-mode-map (kbd "C-<down>") 'reb-next-match)
;;
;; Make bindings work with org-mode
;;

Loading…
Cancel
Save