I frequently find that lock files such as .#core.clj are not deleted. For some reason files named .#name cause other commandline tools to fail on OS X such as grep -R pattern . and build tools like leiningen. I have not experienced any emacs crashes reciently so I don't believe these files were left behind by unclean termination, but have yet to consistently reproduce the issue. I do not like to save files manually, so I have autosave configured to automatically save dirty buffers every second, so these lock files should not need to exist for more than a second but for what ever reason I keep finding them. My autosave config (and full emacs config) is here: https://bitbucket.org/kurtharriger/emacs.d/src/20de37046196/init.d/60-auto-save.el Would it is possible to save lock files elsewhere? or change the pattern filename.emacslock or something that would not result in other commandline tools failing but I couldnt find any settings for this? -- In GNU Emacs 24.0.95.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-04-02 on bob.porkrind.org Windowing system distributor `Apple', version 10.3.1138 Configured using: `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin' '--with-ns' 'build_alias=i686-apple-darwin' 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Clojure Minor modes in effect: recentf-mode: t midje-mode: t hi-lock-mode: t slime-mode: t paredit-mode: t hl-line-mode: t idle-highlight-mode: t tabbar-mwheel-mode: t tabbar-mode: t savehist-mode: t delete-selection-mode: t global-auto-revert-mode: t global-auto-complete-mode: t auto-complete-mode: t ido-ubiquitous-mode: t show-paren-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t hs-minor-mode: t Recent input: ( c o m m e n t SPC C-) C-e ( g e t - h e n h SPC ( b i n d i n g SPC [ * h o s t * SPC C-c C-c C-c C-c C-c C-a s-c s-v C-a C-k s-v C-a C-e t e e s t 0 - f i e s-s C-a C-d C-d C-d C-d l e t [ C-) C-) C-d C-e C-) C-) C-d C-d C-d C-d C-d C-d C-d C-k C-e s-v C-a C-k C-e s-v C-d C-d C-d C-d C-k C-k s-s C-e C-x C-e s-s C-c C-k C-s M-s M-x r e p o r t - b u Recent messages: (No changes need to be saved) [2 times] Saving file /Users/kurtharriger/code/fc/cherry-pitter/src/cherry_pitter/enrichment/core.clj... Wrote /Users/kurtharriger/code/fc/cherry-pitter/src/cherry_pitter/enrichment/core.clj Compiling /Users/kurtharriger/code/fc/cherry-pitter/src/cherry_pitter/enrichment/core.clj... Compilation finished. (No warnings) [0.04 secs] Highlighting notes... Compilation finished. (No warnings) [0.04 secs] Preparing compilation log... Compilation finished. (No warnings) [0.04 secs] (No changes need to be saved) Load-path shadows: /Users/kurtharriger/.emacs.d/elpa/json-1.2/json hides /Applications/Emacs.app/Contents/Resources/lisp/json Features: (shadow sort flyspell ispell emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader debug arc-mode archive-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs mule-util recentf tree-widget multi-isearch conf-mode dired mail-extr midje-mode midje-mode-praise clojure-test-mode which-func imenu compile newcomment hi-lock help-mode view ffap network-stream auth-source eieio assoc gnus-util password-cache starttls tls slime-eldoc-d8b3cf74 slime-repl-79b38c83 slime-repl slime-frame-colors-a24dd450 slime-frame-colors byte-opt warnings slime-dbd975fa slime bytecomp byte-compile cconv macroexp apropos hideshow pp vc-git clojure-mode eldoc elisp-slime-nav etags paredit hl-line saveplace idle-highlight-mode thingatpt color-theme wid-edit sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils reporter tabbar alpha tempbuf moz-reload-mode moz derived comint regexp-opt ansi-color ring server savehist delsel autorevert auto-complete easy-mmode popup org-install alpha-autoloads auctex-autoloads tex-site info easymenu clojure-test-mode-autoloads clojure-mode-autoloads color-theme-ir-black-autoloads color-theme-autoloads js2-mode-autoloads json-autoloads markdown-mode-autoloads marmalade-autoloads furl-autoloads midje-mode-autoloads oddmuse-autoloads rainbow-delimiters-autoloads scpaste-autoloads htmlize-autoloads slime-autoloads starter-kit-bindings-autoloads windmove starter-kit-eshell-autoloads starter-kit-lisp-autoloads elisp-slime-nav-autoloads starter-kit-autoloads edmacro kmacro smex cl starter-kit-misc ido-ubiquitous ido paren starter-kit-defuns uniquify advice help-fns advice-preload magit-autoloads ido-ubiquitous-autoloads smex-autoloads find-file-in-project-autoloads idle-highlight-mode-autoloads paredit-autoloads tuareg-autoloads caml-autoloads yaml-mode-autoloads package tabulated-list time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)