Commits

Stephan Baumeister committed b91111e

Configured dired to show less information, added javascript snippets.

  • Participants
  • Parent commits 95ce6fe

Comments (0)

Files changed (26)

 startup/local-after-init.el
 README.html
 auto-save-list
+bookmarks
 server
 elpa
 recentf
           autopair
           coffee-mode
           control-lock
+          dired-sort-menu
           dired+
           dired-details+
           evil
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
+ '(diredp-dir-heading ((t (:inherit dired-header :background "light gray"))))
+ '(diredp-dir-priv ((t (:inherit dired-directory :weight bold))))
+ '(diredp-file-suffix ((t (:inherit diredp-file-name))))
  '(fringe ((t (:background "white"))))
  '(mode-line ((t (:background "light goldenrod" :foreground "black" :box nil))))
  '(mode-line-inactive ((t (:inherit mode-line :background "grey90" :foreground "grey40" :box nil :weight light))))

personal/snippets/js-mode/assert.yasnippet

+# -*- mode: snippet -*-
+# name: assert
+# key: assert
+# --
+assert.${1:equal}($0);

personal/snippets/js-mode/cb.yasnippet

+# -*- mode: snippet -*-
+# name: cb
+# key: cb
+# --
+function(error, $1){
+$0
+}

personal/snippets/js-mode/com.yasnippet

+# -*- mode: snippet -*-
+# name: com
+# key: com
+# --
+
+/**
+ * $0
+ * @param {${1:String}} $2
+ * @return {${3:String}}
+ */

personal/snippets/js-mode/error.snippet

+# -*- mode: snippet -*-
+# name: error
+# key: error
+# --
+if(${1:error}){
+  callback($1);
+  return;
+}
+$2

personal/snippets/js-mode/exports.yasnippet

+# -*- mode: snippet -*-
+# name: exports
+# key: exports
+# --
+module.exports = {
+$0
+};

personal/snippets/js-mode/fn.yasnippet

+# -*- mode: snippet -*-
+# name: fn
+# key: fn
+# --
+function$1($2){
+$0
+}

personal/snippets/js-mode/for.yasnippet

+# -*- mode: snippet -*-
+# name: for
+# key: for
+# --
+var ${1:i} = ${2:-1}, len = $3.length;
+
+for(; ++$1 < len;){
+  $4
+}

personal/snippets/js-mode/if.yasnippet

+# -*- mode: snippet -*-
+# name: if
+# key: if
+# --
+if( ${1} ){
+$0
+}

personal/snippets/js-mode/invoc.yasnippet

+# -*- mode: snippet -*-
+# name: invoc
+# key: invoc
+# --
+(function($1){
+$0
+})($2);

personal/snippets/js-mode/log.yasnippet

+# -*- mode: snippet -*-
+# name: log
+# key: log
+# --
+console.${1:log}( $0 );

personal/snippets/js-mode/method.yasnippet

+# -*- mode: snippet -*-
+# name: method
+# key: method
+# --
+$1.prototype.$2 = function($3){
+${0}
+};

personal/snippets/js-mode/prop.yasnippet

+# -*- mode: snippet -*-
+# name: prop
+# key: prop
+# --
+
+var $1 = (function(){
+
+  var value = undefined;
+
+  return function $1(newValue){
+
+    if( $1.arguments.length > 0 ){
+      value = newValue;
+    }
+
+    return value;
+  };
+
+})();

personal/snippets/js-mode/proto.yasnippet

+# -*- mode: snippet -*-
+# name: proto
+# key: proto
+# --
+$1.prototype.$2 = $0

personal/snippets/js-mode/rq.yasnippet

+# -*- mode: snippet -*-
+# name: rq
+# key: rq
+# --
+$1 = require("${2:$1}")${0:,}

personal/snippets/js-mode/rt.yasnippet

+# -*- mode: snippet -*-
+# name: rt
+# key: rt
+# --
+return$0;

personal/snippets/js-mode/slice.yasnippet

+# -*- mode: snippet -*-
+# name: slice
+# key: slice
+# --
+Array.prototype.slice.${1:call}($0);

personal/snippets/js-mode/super.yasnippet

+# -*- mode: snippet -*-
+# name: super
+# key: super
+# --
+$1.prototype.${2:constructor}.${3:call}($0);

personal/snippets/js-mode/switch.yasnippet

+# -*- mode: snippet -*-
+# name: switch
+# key: switch
+# --
+switch($1){
+$0
+};

personal/snippets/js-mode/throw.yasnippet

+# -*- mode: snippet -*-
+# name: throw
+# key: throw
+# --
+throw new Error("$1");

personal/snippets/js-mode/try.yasnippet

+# -*- mode: snippet -*-
+# name: try
+# key: try
+# --
+try {
+  $1
+} catch(error) {
+  $0
+}

personal/snippets/js-mode/var.yasnippet

+# -*- mode: snippet -*-
+# name: var
+# key: var
+# --
+var $1 = $0

personal/snippets/js-mode/wh.yasnippet

+# -*- mode: snippet -*-
+# name: wh
+# key: wh
+# --
+while($1){
+$0
+}

personal/snippets/js-mode/while.yasnippet

+# -*- mode: snippet -*-
+# name: while
+# key: while
+# --
+
+var i = $1.length;
+
+while( i -- ){
+  $0
+}

startup/global-after-init.el

 (setq redisplay-dont-pause t)
 (setq-default bidi-display-reordering nil)
 (setq auto-window-vscroll nil)
+(setq jit-lock-defer-time 0.25)
 ;; (setq scroll-margin 1)
 (setq scroll-step 0)
 (setq scroll-conservatively most-positive-fixnum)
 ;; Dired
 ;;--------------------------------------------------------------------------------------------------
 (setq ls-lisp-verbosity nil)
+(setq ls-lisp-dirs-first t)
+(setq dired-details-hidden-string "")
+(diredp-toggle-find-file-reuse-dir 1)
 
 ;;--------------------------------------------------------------------------------------------------
 ;; AUCTeX
           (lambda ()
             (turn-on-reftex)
             (add-to-list 'TeX-command-list
-                         '("Texify" "texify --batch --pdf --tex-option=\"--synctex=1 --interaction=nonstopmode --aux-directory=tmp\" %t" TeX-run-command t (latex-mode)
+                         ;; '("Texify" "texify --batch --pdf --tex-option=\"--synctex=1 --interaction=nonstopmode --aux-directory=tmp\" %t" TeX-run-command t (latex-mode)
+                         '("Texify" "texify --batch --pdf --tex-option=\"--synctex=1 --interaction=nonstopmode\" %t" TeX-run-command t (latex-mode)
                            :help "Texify document to pdf (resolves all cross-references, etc.)") t)
             (setq TeX-command-default "Texify")))