1 ;;; vs-set-c-style.el --- Visual Studio like C/C++ style for c-mode
2 ;; Use source/tool/emacs/csp-qt-c-style.el .
3 ;; Please copy above to ~/.emacs.d/lisp/ or /usr/local/share/site-lisp etc.
4 ;; And put below threelines to ~/.emacs and uncomment. --- 20180228 K.Ohta
7 ;; If you using editorconfig for elisp,
8 ;; please load this before loading editorconfig.
9 ;; -- 2023-02-07 K.Ohta.
11 ;; DO NOT UNCOMMENT BELOW if you USE EDITORCONFIG,
12 ;; PLACE below threee lines to .emacs .
13 ;(autoload 'csp-qt-set-c-style "csp-qt-c-style")
14 ;(add-hook 'c-mode-hook 'csp-qt-set-c-style)
15 ;(add-hook 'c++-mode-hook 'csp-qt-set-c-style)
18 ;('csp-qt-set-c-style )
20 ;;(setq c-file-style "csp-qt")
21 ;; (setq c-file-style "vs")
22 ; "FILE" "lconv" "tm" "va_list" "jmp_buf" "istream" "istreambuf" "ostream" "ostreambuf" "ifstream" "ofstream" "fstream" "strstream" "strstreambuf" "istrstream" "ostrstream" "ios" "string" "rope" "list" "slist" "deque" "vector" "bit_vector" "set" "multiset" "map" "multimap" "hash" "hash_set" "hash_multiset" "hash_map" "hash_multimap" "stack" "queue" "priority_queue" "type_info" "iterator" "const_iterator" "reverse_iterator" "const_reverse_iterator" "reference" "const_reference" "int[0-9]+_t" "uint[0-9]+_t" "Qt3D[:alnum:]+" "Q[A-Z][:alnum:]+" "quint[0-9]+" "pair64_[tu]" "pair32_[tu]" "pair16_[tu]" "LPTSTR" "LPCTSTR" "BOOL" "BYTE" "WORD" "[DQ]WORD" "INT[8|16|32|64]" "INT" "UINT[8|16|32|64]" "UINT" "_TCHAR" "SOCKET" "qint[0-9]+"
24 ;(font-lock-add-keywords
41 ;(global-company-mode) ; 全バッファで有効にする
42 ;(setq company-idle-delay 0) ; デフォルトは0.5
43 ;(setq company-minimum-prefix-length 2) ; デフォルトは4
44 ;(setq company-selection-wrap-around t) ; 候補の一番下でさらに下に行こうとすると一番上に戻る